diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-19 00:51:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-19 00:51:47 +0000 |
commit | 1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a (patch) | |
tree | 29abc5e7d8e8b090bee5f7f891c45f2f75e63f25 /include | |
parent | f28019e5f77bff438d13aa4b73486fed603bca02 (diff) | |
download | llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.gz llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.bz2 llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.xz |
Remove DIBuilder cache of variable TheCU and change the few
uses that wanted it. Also change the interface for createCompileUnit
to compensate. Fix comments that refer to TheCU as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DIBuilder.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index e7751d18f8..a15d619097 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -29,6 +29,7 @@ namespace llvm { class MDNode; class StringRef; class DIBasicType; + class DICompileUnit; class DICompositeType; class DIDerivedType; class DIDescriptor; @@ -53,7 +54,6 @@ namespace llvm { private: Module &M; LLVMContext & VMContext; - MDNode *TheCU; MDNode *TempEnumTypes; MDNode *TempRetainTypes; @@ -81,7 +81,6 @@ namespace llvm { public: explicit DIBuilder(Module &M); - const MDNode *getCU() { return TheCU; } enum ComplexAddrKind { OpPlus=1, OpDeref }; /// finalize - Construct any deferred debug info descriptors. @@ -103,10 +102,11 @@ namespace llvm { /// Objective-C. /// @param SplitName The name of the file that we'll split debug info out /// into. - void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir, - StringRef Producer, bool isOptimized, - StringRef Flags, unsigned RV, - StringRef SplitName = StringRef()); + DICompileUnit createCompileUnit(unsigned Lang, StringRef File, + StringRef Dir, StringRef Producer, + bool isOptimized, StringRef Flags, + unsigned RV, + StringRef SplitName = StringRef()); /// createFile - Create a file descriptor to hold debugging information /// for a file. |