Skip to content

Commit

Permalink
Set default USDT argument parser
Browse files Browse the repository at this point in the history
This sets the default USDT argument parser for all the
architectures that currently do not implement one to
the parser for x86_64. This is to avoid a compilation
error about the architecture being not supported yet.

Signed-off-by: Sandipan Das <[email protected]>
  • Loading branch information
sandip4n committed Oct 10, 2017
1 parent 253b27d commit 9ab1cee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cc/usdt/usdt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ namespace USDT {
Location::Location(uint64_t addr, const char *arg_fmt) : address_(addr) {
#ifdef __powerpc64__
ArgumentParser_powerpc64 parser(arg_fmt);
#elif defined(__x86_64__)
ArgumentParser_x64 parser(arg_fmt);
#else
#error "bcc does not support this platform yet"
ArgumentParser_x64 parser(arg_fmt);
#endif
while (!parser.done()) {
Argument arg;
Expand Down

0 comments on commit 9ab1cee

Please sign in to comment.