diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-11-15 23:54:45 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-11-15 23:54:45 +0000 |
commit | b01f13ecf647ba5572a87b396fa408b39b93fbc3 (patch) | |
tree | 70f94f293390afd67abef6355486d8e85b4f20b5 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 12027e58e1d834f8230d3cad684e52227d4ea34d (diff) | |
download | bcm5719-llvm-b01f13ecf647ba5572a87b396fa408b39b93fbc3.tar.gz bcm5719-llvm-b01f13ecf647ba5572a87b396fa408b39b93fbc3.zip |
DwarfCompileUnit: Add type safety to CompileUnit::getNode by returning DICompileUnit instead of a raw MDNode*.
llvm-svn: 194895
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 5b6d33f5ce6..059f2be2104 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -101,7 +101,7 @@ public: // Accessors. unsigned getUniqueID() const { return UniqueID; } uint16_t getLanguage() const { return Node.getLanguage(); } - const MDNode *getNode() const { return Node; } + DICompileUnit getNode() const { return Node; } DIE *getCUDie() const { return CUDie.get(); } const StringMap<DIE *> &getGlobalNames() const { return GlobalNames; } const StringMap<DIE *> &getGlobalTypes() const { return GlobalTypes; } |