mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +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:
@@ -221,9 +221,7 @@ static bool StripDebugInfo(Module &M) {
|
||||
NMD->eraseFromParent();
|
||||
}
|
||||
MetadataContext &TheMetadata = M.getContext().getMetadata();
|
||||
unsigned MDDbgKind = TheMetadata.getMDKind("dbg");
|
||||
if (!MDDbgKind)
|
||||
return Changed;
|
||||
unsigned MDDbgKind = TheMetadata.getMDKindID("dbg");
|
||||
|
||||
for (Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI)
|
||||
for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE;
|
||||
|
||||
Reference in New Issue
Block a user