mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Generate DEBUG_VALUE comments on x86. The (limited)
dbg.declare's we currently generate go through both register allocators without perturbing the results. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1153,6 +1153,16 @@ bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) {
|
||||
// FIXME: Handle more intrinsics.
|
||||
switch (I.getIntrinsicID()) {
|
||||
default: return false;
|
||||
case Intrinsic::dbg_declare: {
|
||||
DbgDeclareInst *DI = cast<DbgDeclareInst>(&I);
|
||||
X86AddressMode AM;
|
||||
if (!X86SelectAddress(DI->getAddress(), AM))
|
||||
return false;
|
||||
const TargetInstrDesc &II = TII.get(TargetInstrInfo::DEBUG_VALUE);
|
||||
addFullAddress(BuildMI(MBB, DL, II), AM).addImm(0).
|
||||
addMetadata(DI->getVariable());
|
||||
return true;
|
||||
}
|
||||
case Intrinsic::trap: {
|
||||
BuildMI(MBB, DL, TII.get(X86::TRAP));
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user