summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 04:46:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 04:46:57 +0000
commitc900303e2fb26052e52a72bb591527fd184e4317 (patch)
tree68f41b0d5b62ebf120e66f0390957d66ba1acaed /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent5ba1c6ced8071108c5c62f6ccb4450e392d94e1d (diff)
downloadbcm5719-llvm-c900303e2fb26052e52a72bb591527fd184e4317.tar.gz
bcm5719-llvm-c900303e2fb26052e52a72bb591527fd184e4317.zip
Use type form of getIntPtrType.
This should be inconsequential and is work towards removing the default address space arguments. llvm-svn: 194347
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6fd75b0791d..44a83167238 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -417,7 +417,7 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
// - __tlv_bootstrap - used to make sure support exists
// - spare pointer, used when mapped by the runtime
// - pointer to mangled symbol above with initializer
- unsigned PtrSize = DL->getPointerSizeInBits()/8;
+ unsigned PtrSize = DL->getPointerTypeSize(GV->getType());
OutStreamer.EmitSymbolValue(GetExternalSymbolSymbol("_tlv_bootstrap"),
PtrSize);
OutStreamer.EmitIntValue(0, PtrSize);
OpenPOWER on IntegriCloud