diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-16 05:26:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 05:26:00 +0000 |
commit | 16fcdf9d05d09acde6146d531067fab0bf24f822 (patch) | |
tree | 6d04b4c3c7e1f4138705147d35c2713cfdd3c848 /include | |
parent | 242f740dcbfc14d95a6eaf5305ca794d28df9a13 (diff) | |
download | external_llvm-16fcdf9d05d09acde6146d531067fab0bf24f822.zip external_llvm-16fcdf9d05d09acde6146d531067fab0bf24f822.tar.gz external_llvm-16fcdf9d05d09acde6146d531067fab0bf24f822.tar.bz2 |
the pointer MMI keeps will start out with object-file format specific stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 88aba7e..1ea01b4 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -91,9 +91,10 @@ struct LandingPadInfo { /// schemes and reformated for specific use. /// class MachineModuleInfo : public ImmutablePass { - /// TargetMMI - This is the target-specific implementation of - /// MachineModuleInfoImpl, which lets them accumulate whatever info they want. - MachineModuleInfoImpl *TargetMMI; + /// ObjFileMMI - This is the object-file-format-specific implementation of + /// MachineModuleInfoImpl, which lets targets accumulate whatever info they + /// want. + MachineModuleInfoImpl *ObjFileMMI; // LabelIDList - One entry per assigned label. Normally the entry is equal to // the list index(+1). If the entry is zero then the label has been deleted. @@ -161,18 +162,18 @@ public: /// backends that would like to do so. /// template<typename Ty> - Ty *getInfo() { - if (TargetMMI == 0) - TargetMMI = new Ty(*this); + Ty *getObjFileInfo() { + if (ObjFileMMI == 0) + ObjFileMMI = new Ty(*this); - assert((void*)dynamic_cast<Ty*>(TargetMMI) == (void*)TargetMMI && + assert((void*)dynamic_cast<Ty*>(ObjFileMMI) == (void*)ObjFileMMI && "Invalid concrete type or multiple inheritence for getInfo"); - return static_cast<Ty*>(TargetMMI); + return static_cast<Ty*>(ObjFileMMI); } template<typename Ty> - const Ty *getInfo() const { - return const_cast<MachineModuleInfo*>(this)->getInfo<Ty>(); + const Ty *getObjFileInfo() const { + return const_cast<MachineModuleInfo*>(this)->getObjFileInfo<Ty>(); } /// AnalyzeModule - Scan the module for global debug information. |