diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-05-09 23:11:38 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-05-09 23:11:38 +0000 |
commit | 417d4c508bf11ec6e525749ba77270395a7ee0e4 (patch) | |
tree | e670e81637c5b65ad45c9004476bdd965044e6f7 /llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp | |
parent | 57443fce3f7fc4cdc0408add716145448b760e3b (diff) | |
download | bcm5719-llvm-417d4c508bf11ec6e525749ba77270395a7ee0e4.tar.gz bcm5719-llvm-417d4c508bf11ec6e525749ba77270395a7ee0e4.zip |
Fix some Clang-tidy modernize-deprecated-headers and Include What You Use warnings; other minor fixes.
Differential revision: http://reviews.llvm.org/D20042
llvm-svn: 268989
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp b/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp index a9dee7abeed..3eb9ffc17f1 100644 --- a/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp +++ b/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp @@ -13,9 +13,19 @@ //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/Symbolize/DIPrinter.h" - +#include "llvm/ADT/StringRef.h" #include "llvm/DebugInfo/DIContext.h" +#include "llvm/Support/ErrorOr.h" +#include "llvm/Support/Format.h" #include "llvm/Support/LineIterator.h" +#include "llvm/Support/MemoryBuffer.h" +#include "llvm/Support/raw_ostream.h" +#include <algorithm> +#include <cmath> +#include <cstddef> +#include <cstdint> +#include <memory> +#include <string> namespace llvm { namespace symbolize { @@ -61,7 +71,7 @@ void DIPrinter::print(const DILineInfo &Info, bool Inlined) { if (FunctionName == kDILineInfoBadString) FunctionName = kBadString; - StringRef Delimiter = (PrintPretty == true) ? " at " : "\n"; + StringRef Delimiter = PrintPretty ? " at " : "\n"; StringRef Prefix = (PrintPretty && Inlined) ? " (inlined by) " : ""; OS << Prefix << FunctionName << Delimiter; } @@ -97,5 +107,5 @@ DIPrinter &DIPrinter::operator<<(const DIGlobal &Global) { return *this; } -} -} +} // end namespace symbolize +} // end namespace llvm |