Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Lex/Pragma.cpp
Show All 33 Lines | |||||
#include "clang/Lex/TokenLexer.h" | #include "clang/Lex/TokenLexer.h" | ||||
#include "llvm/ADT/ArrayRef.h" | #include "llvm/ADT/ArrayRef.h" | ||||
#include "llvm/ADT/DenseMap.h" | #include "llvm/ADT/DenseMap.h" | ||||
#include "llvm/ADT/STLExtras.h" | #include "llvm/ADT/STLExtras.h" | ||||
#include "llvm/ADT/SmallString.h" | #include "llvm/ADT/SmallString.h" | ||||
#include "llvm/ADT/SmallVector.h" | #include "llvm/ADT/SmallVector.h" | ||||
#include "llvm/ADT/StringSwitch.h" | #include "llvm/ADT/StringSwitch.h" | ||||
#include "llvm/ADT/StringRef.h" | #include "llvm/ADT/StringRef.h" | ||||
#include "llvm/Support/CrashRecoveryContext.h" | |||||
hans: I think this can be removed now. | |||||
#include "llvm/Support/Compiler.h" | #include "llvm/Support/Compiler.h" | ||||
#include "llvm/Support/ErrorHandling.h" | #include "llvm/Support/ErrorHandling.h" | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <cassert> | #include <cassert> | ||||
#include <cstddef> | #include <cstddef> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <limits> | #include <limits> | ||||
#include <string> | #include <string> | ||||
▲ Show 20 Lines • Show All 1,049 Lines • ▼ Show 20 Lines | if (II->isStr("assert")) { | ||||
PP.Diag(IIAndLoc.second, diag::warn_pragma_debug_unknown_module) | PP.Diag(IIAndLoc.second, diag::warn_pragma_debug_unknown_module) | ||||
<< IIAndLoc.first; | << IIAndLoc.first; | ||||
return; | return; | ||||
} | } | ||||
} | } | ||||
M->dump(); | M->dump(); | ||||
} else if (II->isStr("overflow_stack")) { | } else if (II->isStr("overflow_stack")) { | ||||
DebugOverflowStack(); | DebugOverflowStack(); | ||||
} else if (II->isStr("handle_crash")) { | |||||
llvm::CrashRecoveryContext *CRC =llvm::CrashRecoveryContext::GetCurrent(); | |||||
if (CRC) | |||||
CRC->HandleCrash(); | |||||
} else if (II->isStr("captured")) { | } else if (II->isStr("captured")) { | ||||
HandleCaptured(PP); | HandleCaptured(PP); | ||||
} else { | } else { | ||||
PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command) | PP.Diag(Tok, diag::warn_pragma_debug_unexpected_command) | ||||
<< II->getName(); | << II->getName(); | ||||
} | } | ||||
PPCallbacks *Callbacks = PP.getPPCallbacks(); | PPCallbacks *Callbacks = PP.getPPCallbacks(); | ||||
▲ Show 20 Lines • Show All 795 Lines • Show Last 20 Lines |
I think this can be removed now.