diff options
author | Dan Gohman <gohman@apple.com> | 2007-09-25 15:10:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-09-25 15:10:49 +0000 |
commit | c3b0b5ca1d5772cf90c0c66e03412da33a0d7cdb (patch) | |
tree | 6c972106064a3bd17de0330794d6d3dd4755c80f /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | d98164e6eee1d41da7c3147d2e13215fcd68e592 (diff) |
Move the setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand) and
the check to see if the assembler supports .loc from X86TargetLowering
into the superclass TargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 5943cc1ebd..0898173ef9 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -20,6 +20,7 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/MathExtras.h" +#include "llvm/Target/TargetAsmInfo.h" using namespace llvm; /// InitLibcallNames - Set default libcall names. @@ -169,6 +170,10 @@ TargetLowering::TargetLowering(TargetMachine &tm) InitLibcallNames(LibcallRoutineNames); InitCmpLibcallCCs(CmpLibcallCCs); + + // Tell Legalize whether the assembler supports DEBUG_LOC. + if (!TM.getTargetAsmInfo()->hasDotLocAndDotFile()) + setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand); } TargetLowering::~TargetLowering() {} |