Tidy up example of getting the pointer size.

llvm-svn: 284201
This commit is contained in:
Eric Christopher 2016-10-14 05:45:46 +00:00
parent 35355bb896
commit b2437da968
1 changed files with 1 additions and 1 deletions

View File

@ -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());