summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/IR/DebugLoc.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-01-27 16:42:12 +0000
committerpatrick <patrick@openbsd.org>2019-01-27 16:42:12 +0000
commitb773203fb58f3ef282fb69c832d8710cab5bc82d (patch)
treee75913f147570fbd75169647b144df85b88a038c /gnu/llvm/lib/IR/DebugLoc.cpp
parenttweak errno in previous (diff)
downloadwireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.tar.xz
wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.zip
Import LLVM 7.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/IR/DebugLoc.cpp')
-rw-r--r--gnu/llvm/lib/IR/DebugLoc.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/gnu/llvm/lib/IR/DebugLoc.cpp b/gnu/llvm/lib/IR/DebugLoc.cpp
index 0a494119c3f..36f3e179a2c 100644
--- a/gnu/llvm/lib/IR/DebugLoc.cpp
+++ b/gnu/llvm/lib/IR/DebugLoc.cpp
@@ -9,6 +9,7 @@
#include "llvm/IR/DebugLoc.h"
#include "LLVMContextImpl.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/IR/DebugInfo.h"
using namespace llvm;
@@ -99,19 +100,7 @@ DebugLoc DebugLoc::appendInlinedAt(DebugLoc DL, DILocation *InlinedAt,
}
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
-LLVM_DUMP_METHOD void DebugLoc::dump() const {
- if (!Loc)
- return;
-
- dbgs() << getLine();
- if (getCol() != 0)
- dbgs() << ',' << getCol();
- if (DebugLoc InlinedAtDL = DebugLoc(getInlinedAt())) {
- dbgs() << " @ ";
- InlinedAtDL.dump();
- } else
- dbgs() << "\n";
-}
+LLVM_DUMP_METHOD void DebugLoc::dump() const { print(dbgs()); }
#endif
void DebugLoc::print(raw_ostream &OS) const {