projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move most user of TargetMachine::getDataLayout to the Module one
[oota-llvm.git]
/
lib
/
Target
/
SystemZ
/
SystemZAsmPrinter.cpp
diff --git
a/lib/Target/SystemZ/SystemZAsmPrinter.cpp
b/lib/Target/SystemZ/SystemZAsmPrinter.cpp
index 3dca7bd89f05e8f94168566d750d6e2973ffdfcc..75273114d62fc24587d1734680af3c8b397139b1 100644
(file)
--- a/
lib/Target/SystemZ/SystemZAsmPrinter.cpp
+++ b/
lib/Target/SystemZ/SystemZAsmPrinter.cpp
@@
-288,7
+288,7
@@
EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) {
MCSymbolRefExpr::create(getSymbol(ZCPV->getGlobalValue()),
getModifierVariantKind(ZCPV->getModifier()),
OutContext);
MCSymbolRefExpr::create(getSymbol(ZCPV->getGlobalValue()),
getModifierVariantKind(ZCPV->getModifier()),
OutContext);
- uint64_t Size =
TM.getDataLayout()->
getTypeAllocSize(ZCPV->getType());
+ uint64_t Size =
getDataLayout().
getTypeAllocSize(ZCPV->getType());
OutStreamer->EmitValue(Expr, Size);
}
OutStreamer->EmitValue(Expr, Size);
}