aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-07 18:51:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-07 18:51:54 +0000
commit28f14933edc863821e4f2ffa3663835c62440dcb (patch)
tree9de3193b23ff5b49f2b2593eb03050eb64ed24cd /include/clang
parent5dccf575ad0b45a268d4026047234a6872440c95 (diff)
Fronted/CC_LOG_DIAGNOSTICS: Output main file name, and add support for
outputting dwarf-debug-flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Frontend/LogDiagnosticPrinter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Frontend/LogDiagnosticPrinter.h b/include/clang/Frontend/LogDiagnosticPrinter.h
index 8ac6093318..b6fc23ca1f 100644
--- a/include/clang/Frontend/LogDiagnosticPrinter.h
+++ b/include/clang/Frontend/LogDiagnosticPrinter.h
@@ -12,6 +12,7 @@
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceLocation.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallVector.h"
namespace clang {
@@ -49,11 +50,18 @@ class LogDiagnosticPrinter : public DiagnosticClient {
llvm::SmallVector<DiagEntry, 8> Entries;
+ std::string MainFilename;
+ std::string DwarfDebugFlags;
+
public:
LogDiagnosticPrinter(llvm::raw_ostream &OS, const DiagnosticOptions &Diags,
bool OwnsOutputStream = false);
virtual ~LogDiagnosticPrinter();
+ void setDwarfDebugFlags(llvm::StringRef Value) {
+ DwarfDebugFlags = Value;
+ }
+
void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) {
LangOpts = &LO;
}