mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
clang-formatize llvm-symbolizer code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -32,24 +32,22 @@ using namespace symbolize;
|
||||
|
||||
static cl::opt<bool>
|
||||
ClUseSymbolTable("use-symbol-table", cl::init(true),
|
||||
cl::desc("Prefer names in symbol table to names "
|
||||
"in debug info"));
|
||||
cl::desc("Prefer names in symbol table to names "
|
||||
"in debug info"));
|
||||
|
||||
static cl::opt<bool>
|
||||
ClPrintFunctions("functions", cl::init(true),
|
||||
cl::desc("Print function names as well as line "
|
||||
"information for a given address"));
|
||||
cl::desc("Print function names as well as line "
|
||||
"information for a given address"));
|
||||
|
||||
static cl::opt<bool>
|
||||
ClPrintInlining("inlining", cl::init(true),
|
||||
cl::desc("Print all inlined frames for a given address"));
|
||||
cl::desc("Print all inlined frames for a given address"));
|
||||
|
||||
static cl::opt<bool>
|
||||
ClDemangle("demangle", cl::init(true),
|
||||
cl::desc("Demangle function names"));
|
||||
ClDemangle("demangle", cl::init(true), cl::desc("Demangle function names"));
|
||||
|
||||
static bool parseCommand(bool &IsData,
|
||||
std::string &ModuleName,
|
||||
static bool parseCommand(bool &IsData, std::string &ModuleName,
|
||||
uint64_t &ModuleOffset) {
|
||||
const char *kDataCmd = "DATA ";
|
||||
const char *kCodeCmd = "CODE ";
|
||||
@ -75,7 +73,7 @@ static bool parseCommand(bool &IsData,
|
||||
// FIXME: Handle case when filename is given in quotes.
|
||||
if (char *FilePath = strtok(pos, kDelimiters)) {
|
||||
ModuleName = FilePath;
|
||||
if (char *OffsetStr = strtok((char*)0, kDelimiters))
|
||||
if (char *OffsetStr = strtok((char *)0, kDelimiters))
|
||||
ModuleOffsetStr = OffsetStr;
|
||||
}
|
||||
if (StringRef(ModuleOffsetStr).getAsInteger(0, ModuleOffset))
|
||||
@ -87,7 +85,7 @@ int main(int argc, char **argv) {
|
||||
// Print stack trace if we signal out.
|
||||
sys::PrintStackTraceOnErrorSignal();
|
||||
PrettyStackTraceProgram X(argc, argv);
|
||||
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
|
||||
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
|
||||
|
||||
cl::ParseCommandLineOptions(argc, argv, "llvm symbolizer for compiler-rt\n");
|
||||
LLVMSymbolizer::Options Opts(ClUseSymbolTable, ClPrintFunctions,
|
||||
|
Reference in New Issue
Block a user