aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:51:36 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 03:51:36 +0000
commitacdee690c810a64610b1db689fc414bc16f63f98 (patch)
tree9030178a2f5c261932d72babc1b581981c491f46 /llvm/lib/IR/DebugInfo.cpp
parentd81be6d66431d2802a16656a4a3d40fd93e4b433 (diff)
downloadllvm-acdee690c810a64610b1db689fc414bc16f63f98.zip
llvm-acdee690c810a64610b1db689fc414bc16f63f98.tar.gz
llvm-acdee690c810a64610b1db689fc414bc16f63f98.tar.bz2
DebugInfo: Update signature of DICompileUnit::replace*()
Change `DICompileUnit::replaceSubprograms()` and `DICompileUnit::replaceGlobalVariables()` to match the `MDCompileUnit` equivalents that they're wrapping. llvm-svn: 234852
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 3ffd1306..d289f80 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -33,20 +33,8 @@
using namespace llvm;
using namespace llvm::dwarf;
-//===----------------------------------------------------------------------===//
-// Simple Descriptor Constructors and other Methods
-//===----------------------------------------------------------------------===//
-
DIScopeRef DIScope::getRef() const { return MDScopeRef::get(get()); }
-void DICompileUnit::replaceSubprograms(DIArray Subprograms) {
- get()->replaceSubprograms(MDSubprogramArray(Subprograms));
-}
-
-void DICompileUnit::replaceGlobalVariables(DIArray GlobalVariables) {
- get()->replaceGlobalVariables(MDGlobalVariableArray(GlobalVariables));
-}
-
DIVariable llvm::createInlinedVariable(MDNode *DV, MDNode *InlinedScope,
LLVMContext &VMContext) {
return cast<MDLocalVariable>(DV)