summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/DebugIR.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-02 18:37:35 +0000
committerManman Ren <mren@apple.com>2013-07-02 18:37:35 +0000
commit88328d2ff47670314a1007a4c81c42adf026ee9f (patch)
tree62edb61241082caac8635f3859073c7096216dff /lib/Transforms/Instrumentation/DebugIR.cpp
parent92879a8cb1490c90bf952a17a110dc45063832b0 (diff)
downloadllvm-88328d2ff47670314a1007a4c81c42adf026ee9f.tar.gz
llvm-88328d2ff47670314a1007a4c81c42adf026ee9f.tar.bz2
llvm-88328d2ff47670314a1007a4c81c42adf026ee9f.tar.xz
Debug Info: cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/DebugIR.cpp')
-rw-r--r--lib/Transforms/Instrumentation/DebugIR.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp
index 7bc4da7a8f..f4109eff4f 100644
--- a/lib/Transforms/Instrumentation/DebugIR.cpp
+++ b/lib/Transforms/Instrumentation/DebugIR.cpp
@@ -216,10 +216,10 @@ public:
int FuncFlags = llvm::DIDescriptor::FlagPrototyped;
assert(CUNode && FileNode);
- MDNode *Sub = Builder.createFunction(
+ DISubprogram Sub = Builder.createFunction(
DICompileUnit(CUNode), F.getName(), MangledName, DIFile(FileNode), Line,
Sig, Local, IsDefinition, ScopeLine, FuncFlags, IsOptimized, &F);
- assert(DISubprogram(Sub).isSubprogram());
+ assert(Sub.isSubprogram());
DEBUG(dbgs() << "create subprogram mdnode " << Sub << ": "
<< "\n");