diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:13:06 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:13:06 +0000 |
commit | 7c05da187c9fd7ac83b97ecbe207b88a711667da (patch) | |
tree | 1e1f89a5302510615c0a8dc6d02836f369786789 /include | |
parent | 960d6d909b61c5766dfccbe12c060550d6dd8e54 (diff) | |
download | llvm-7c05da187c9fd7ac83b97ecbe207b88a711667da.tar.gz llvm-7c05da187c9fd7ac83b97ecbe207b88a711667da.tar.bz2 llvm-7c05da187c9fd7ac83b97ecbe207b88a711667da.tar.xz |
Revert "Remove DIBuilder cache of variable TheCU and change the few"
This reverts commit r186599 as I didn't want to commit this yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186601 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 a15d619097..e7751d18f8 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -29,7 +29,6 @@ namespace llvm { class MDNode; class StringRef; class DIBasicType; - class DICompileUnit; class DICompositeType; class DIDerivedType; class DIDescriptor; @@ -54,6 +53,7 @@ namespace llvm { private: Module &M; LLVMContext & VMContext; + MDNode *TheCU; MDNode *TempEnumTypes; MDNode *TempRetainTypes; @@ -81,6 +81,7 @@ namespace llvm { public: explicit DIBuilder(Module &M); + const MDNode *getCU() { return TheCU; } enum ComplexAddrKind { OpPlus=1, OpDeref }; /// finalize - Construct any deferred debug info descriptors. @@ -102,11 +103,10 @@ namespace llvm { /// Objective-C. /// @param SplitName The name of the file that we'll split debug info out /// into. - DICompileUnit createCompileUnit(unsigned Lang, StringRef File, - StringRef Dir, StringRef Producer, - bool isOptimized, StringRef Flags, - unsigned RV, - StringRef SplitName = StringRef()); + void 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. |