diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-05-30 23:50:33 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-05-30 23:50:33 +0000 |
commit | af90a1cd2647909623758078540abb1a81495e32 (patch) | |
tree | 6da86f90a058a6bbe5f0bf7f3572b6ba32284c58 /lib/CodeGen | |
parent | cc5fc60468a1915049ef19a549fe4a6ae8708a00 (diff) |
Use uint8_t and int32_t in {JIT,Machine}CodeEmiters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/MachOWriter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index c8787987a3..43326272c1 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -847,7 +847,7 @@ void MachOWriter::InitMem(const Constant *C, void *Addr, intptr_t Offset, break; } } else if (PC->getType()->isSingleValueType()) { - unsigned char *ptr = (unsigned char *)PA; + uint8_t *ptr = (uint8_t *)PA; switch (PC->getType()->getTypeID()) { case Type::IntegerTyID: { unsigned NumBits = cast<IntegerType>(PC->getType())->getBitWidth(); diff --git a/lib/CodeGen/MachOWriter.h b/lib/CodeGen/MachOWriter.h index 20a4084638..6ab66eee92 100644 --- a/lib/CodeGen/MachOWriter.h +++ b/lib/CodeGen/MachOWriter.h @@ -98,7 +98,7 @@ namespace llvm { return "Mach-O Writer"; } - typedef std::vector<unsigned char> DataBuffer; + typedef std::vector<uint8_t> DataBuffer; protected: /// Output stream to send the resultant object file to. /// |