diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-12-28 20:45:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-12-28 20:45:51 +0000 |
| commit | 7093946ab1d3b836e1f340a1c66c16880b5b6ef4 (patch) | |
| tree | 1813750fbb165fbf9dc4a1ae1b79fd2a9959fd82 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
| parent | c9558df1f0144f43c4c6025d2bef4aa2ead518ee (diff) | |
| download | bcm5719-llvm-7093946ab1d3b836e1f340a1c66c16880b5b6ef4.tar.gz bcm5719-llvm-7093946ab1d3b836e1f340a1c66c16880b5b6ef4.zip | |
rename getMDKind -> getMDKindID, make it autoinsert if an MD Kind
doesn't exist already, eliminate registerMDKind. Tidy up a bunch
of random stuff.
llvm-svn: 92225
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 162d7b3502c..2f94ee16cb4 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -422,7 +422,7 @@ void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, BasicBlock::iterator I = NewBB->begin(); LLVMContext &Context = OldFunc->getContext(); - unsigned DbgKind = Context.getMetadata().getMDKind("dbg"); + unsigned DbgKind = Context.getMetadata().getMDKindID("dbg"); MDNode *TheCallMD = NULL; SmallVector<Value *, 4> MDVs; if (TheCall && TheCall->hasMetadata()) |

