diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-11-15 23:52:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-11-15 23:52:02 +0000 |
commit | 5a15240ef7b900d4786282c8d70f07285ef16963 (patch) | |
tree | 012386a90b8ebe1edaacf24fa5af2f6293943382 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | cb8e435ba467768caadb04c0a55365dbbe663be2 (diff) | |
download | bcm5719-llvm-5a15240ef7b900d4786282c8d70f07285ef16963.tar.gz bcm5719-llvm-5a15240ef7b900d4786282c8d70f07285ef16963.zip |
DwarfCompileUnit: Add type safety by using DICompileUnit rather than raw MDNode* for the CU metadata node
llvm-svn: 194893
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 31ba6d4f0d1..5b6d33f5ce6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -40,7 +40,7 @@ class CompileUnit { unsigned UniqueID; /// Node - MDNode for the compile unit. - const MDNode *Node; + DICompileUnit Node; /// CUDie - Compile unit debug information entry. /// @@ -94,13 +94,13 @@ class CompileUnit { DIEInteger *DIEIntegerOne; public: - CompileUnit(unsigned UID, DIE *D, const MDNode *N, AsmPrinter *A, + CompileUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU); ~CompileUnit(); // Accessors. unsigned getUniqueID() const { return UniqueID; } - uint16_t getLanguage() const { return DICompileUnit(Node).getLanguage(); } + uint16_t getLanguage() const { return Node.getLanguage(); } const MDNode *getNode() const { return Node; } DIE *getCUDie() const { return CUDie.get(); } const StringMap<DIE *> &getGlobalNames() const { return GlobalNames; } |