summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-17 01:04:54 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-17 01:04:54 +0000
commit3c50922ea02b8f23fa306c7e695f9eaefe8b602a (patch)
treee9e33d255beb8ebc1457654c03e3a344dc3997a1 /llvm/include
parent01c3d23814cb0432e13be553f970cf2a529811f2 (diff)
downloadbcm5719-llvm-3c50922ea02b8f23fa306c7e695f9eaefe8b602a.tar.gz
bcm5719-llvm-3c50922ea02b8f23fa306c7e695f9eaefe8b602a.zip
--- 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. llvm-svn: 64715
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/DebugLoc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/include/llvm/CodeGen/DebugLoc.h b/llvm/include/llvm/CodeGen/DebugLoc.h
index 77e8ca505cf..505292846dd 100644
--- a/llvm/include/llvm/CodeGen/DebugLoc.h
+++ b/llvm/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); }
OpenPOWER on IntegriCloud