mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
add new apis for getting/setting !dbg metadata on
instructions. In addition to being a convenience, they are faster than the old apis, particularly when not going from an MDKindID like people should be doing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -340,10 +340,9 @@ bool FastISel::SelectCall(User *I) {
|
||||
StaticAllocaMap.find(AI);
|
||||
if (SI == StaticAllocaMap.end()) break; // VLAs.
|
||||
int FI = SI->second;
|
||||
if (MMI) {
|
||||
if (MDNode *Dbg = DI->getMetadata("dbg"))
|
||||
MMI->setVariableDbgInfo(DI->getVariable(), FI, Dbg);
|
||||
}
|
||||
if (MDNode *Dbg = DI->getDbgMetadata())
|
||||
MMI->setVariableDbgInfo(DI->getVariable(), FI, Dbg);
|
||||
|
||||
// Building the map above is target independent. Generating DBG_VALUE
|
||||
// inline is target dependent; do this now.
|
||||
(void)TargetSelectInstruction(cast<Instruction>(I));
|
||||
|
||||
Reference in New Issue
Block a user