forked from OSchip/llvm-project
Tidy up example of getting the pointer size.
llvm-svn: 284201
This commit is contained in:
parent
35355bb896
commit
b2437da968
|
@ -1007,7 +1007,7 @@ a realistic example:
|
|||
|
||||
void MyGCPrinter::finishAssembly(AsmPrinter &AP) {
|
||||
MCStreamer &OS = AP.OutStreamer;
|
||||
unsigned IntPtrSize = AP.TM.getSubtargetImpl()->getDataLayout()->getPointerSize();
|
||||
unsigned IntPtrSize = AP.getPointerSize();
|
||||
|
||||
// Put this in the data section.
|
||||
OS.SwitchSection(AP.getObjFileLowering().getDataSection());
|
||||
|
|
Loading…
Reference in New Issue