mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[llvm-symbolizer] Reverting r250067
llvm-svn: 250072
This commit is contained in:
parent
a39d32ec2d
commit
d73327a49c
@ -98,8 +98,6 @@ OPTIONS
|
||||
location, look for the debug info at the .dSYM path provided via the
|
||||
``-dsym-hint`` flag. This flag can be used multiple times.
|
||||
|
||||
.. option:: -print-address
|
||||
Print address before the source code location. Defaults to false.
|
||||
|
||||
EXIT STATUS
|
||||
-----------
|
||||
|
@ -189,13 +189,13 @@ public:
|
||||
}
|
||||
|
||||
/// Get the kind of current token.
|
||||
AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
|
||||
AsmToken::TokenKind getKind() const { return getTok().getKind(); }
|
||||
|
||||
/// Check if the current token has kind \p K.
|
||||
bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
|
||||
bool is(AsmToken::TokenKind K) const { return getTok().is(K); }
|
||||
|
||||
/// Check if the current token has kind \p K.
|
||||
bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
|
||||
bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); }
|
||||
|
||||
/// Set whether spaces should be ignored by the lexer
|
||||
void setSkipSpace(bool val) { SkipSpace = val; }
|
||||
|
@ -1 +0,0 @@
|
||||
0x40054d
|
@ -1,19 +0,0 @@
|
||||
#Source:
|
||||
##include <stdio.h>
|
||||
#static inline int inc (int *a) {
|
||||
# printf ("%d\n",(*a)++);
|
||||
# return (*a)++;
|
||||
#}
|
||||
#
|
||||
#int main () {
|
||||
# int x = 1;
|
||||
# return inc(&x);
|
||||
#}
|
||||
#Build as : clang -g -O2 addr.c
|
||||
|
||||
RUN: llvm-symbolizer -inlining -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
|
||||
|
||||
#CHECK: 0x40054d
|
||||
#CHECK: main
|
||||
#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:9:0
|
||||
|
@ -73,9 +73,6 @@ static cl::list<std::string>
|
||||
ClDsymHint("dsym-hint", cl::ZeroOrMore,
|
||||
cl::desc("Path to .dSYM bundles to search for debug info for the "
|
||||
"object files"));
|
||||
static cl::opt<bool>
|
||||
ClPrintAddress("print-address", cl::init(false),
|
||||
cl::desc("Show address before line information"));
|
||||
|
||||
static bool parseCommand(bool &IsData, std::string &ModuleName,
|
||||
uint64_t &ModuleOffset) {
|
||||
@ -155,11 +152,6 @@ int main(int argc, char **argv) {
|
||||
std::string Result =
|
||||
IsData ? Symbolizer.symbolizeData(ModuleName, ModuleOffset)
|
||||
: Symbolizer.symbolizeCode(ModuleName, ModuleOffset);
|
||||
if (ClPrintAddress) {
|
||||
outs() << "0x";
|
||||
outs().write_hex(ModuleOffset);
|
||||
outs() << "\n";
|
||||
}
|
||||
outs() << Result << "\n";
|
||||
outs().flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user