mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 21:05:16 +00:00
* Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
null. This assumes that any target that does not have AsmInfo, does not support "LocAndDot". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2b997b7b5
commit
d9d07780ff
@ -473,7 +473,8 @@ TargetLowering::TargetLowering(TargetMachine &tm)
|
||||
InitCmpLibcallCCs(CmpLibcallCCs);
|
||||
|
||||
// Tell Legalize whether the assembler supports DEBUG_LOC.
|
||||
if (!TM.getTargetAsmInfo()->hasDotLocAndDotFile())
|
||||
const TargetAsmInfo *TASM = TM.getTargetAsmInfo();
|
||||
if (!TASM || !TASM->hasDotLocAndDotFile())
|
||||
setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user