mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
rename getMDKind -> getMDKindID, make it autoinsert if an MD Kind
doesn't exist already, eliminate registerMDKind. Tidy up a bunch of random stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user