diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-17 01:04:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-17 01:04:54 +0000 |
commit | 86e6cb924b85e7a288a4d8bfde5d1a8fb9810c88 (patch) | |
tree | c3e72b8f2057840adab445095bd46766d9fdddc8 /include/llvm/CodeGen | |
parent | 1236df4aaa571461301eaa40c56de559a5a4f2f0 (diff) | |
download | external_llvm-86e6cb924b85e7a288a4d8bfde5d1a8fb9810c88.zip external_llvm-86e6cb924b85e7a288a4d8bfde5d1a8fb9810c88.tar.gz external_llvm-86e6cb924b85e7a288a4d8bfde5d1a8fb9810c88.tar.bz2 |
--- 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
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/DebugLoc.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index 77e8ca5..5052928 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -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); } |