diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/Analysis/Trace.cpp | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/Analysis/Trace.cpp')
| -rw-r--r-- | gnu/llvm/lib/Analysis/Trace.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/llvm/lib/Analysis/Trace.cpp b/gnu/llvm/lib/Analysis/Trace.cpp index c7e2c0f3412..34c998501a6 100644 --- a/gnu/llvm/lib/Analysis/Trace.cpp +++ b/gnu/llvm/lib/Analysis/Trace.cpp @@ -16,9 +16,12 @@ //===----------------------------------------------------------------------===// #include "llvm/Analysis/Trace.h" +#include "llvm/IR/BasicBlock.h" #include "llvm/IR/Function.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" + using namespace llvm; Function *Trace::getFunction() const { @@ -30,7 +33,6 @@ Module *Trace::getModule() const { } /// print - Write trace to output stream. -/// void Trace::print(raw_ostream &O) const { Function *F = getFunction(); O << "; Trace from function " << F->getName() << ", blocks:\n"; @@ -45,7 +47,6 @@ void Trace::print(raw_ostream &O) const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) /// dump - Debugger convenience method; writes trace to standard error /// output stream. -/// LLVM_DUMP_METHOD void Trace::dump() const { print(dbgs()); } |
