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
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp
index c878798..4332627 100644
--- a/lib/CodeGen/MachOWriter.cpp
+++ b/lib/CodeGen/MachOWriter.cpp
@@ -847,7 +847,7 @@
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 20a4084..6ab66ee 100644
--- a/lib/CodeGen/MachOWriter.h
+++ b/lib/CodeGen/MachOWriter.h
@@ -98,7 +98,7 @@
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.
///