mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
--- Merging (from foreign repository) r64714 into '.':
U include/llvm/CodeGen/DebugLoc.h U lib/CodeGen/SelectionDAG/LegalizeDAG.cpp U lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp U lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Enable debug location generation at -Os. This goes with the reapplication of the r63639 patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -37,17 +37,14 @@ namespace llvm {
|
||||
public:
|
||||
DebugLoc() : Idx(~0U) {} // Defaults to invalid.
|
||||
|
||||
static DebugLoc getUnknownLoc() { DebugLoc L; L.Idx = 0; return L; }
|
||||
static DebugLoc getUnknownLoc() { DebugLoc L; L.Idx = ~0U; return L; }
|
||||
static DebugLoc get(unsigned idx) { DebugLoc L; L.Idx = idx; return L; }
|
||||
|
||||
unsigned getIndex() const { return Idx; }
|
||||
|
||||
/// isInvalid - Return true if the DebugLoc is invalid.
|
||||
bool isInvalid() const { return Idx == ~0U; }
|
||||
|
||||
/// isUnknown - Return true if there is no debug info for the SDNode /
|
||||
/// MachineInstr.
|
||||
bool isUnknown() const { return Idx == 0; }
|
||||
bool isUnknown() const { return Idx == ~0U; }
|
||||
|
||||
bool operator==(const DebugLoc &DL) const { return Idx == DL.Idx; }
|
||||
bool operator!=(const DebugLoc &DL) const { return !(*this == DL); }
|
||||
|
Reference in New Issue
Block a user