[dwarfdump] Lookup needs to be an unsigned long long parameter.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 09:45:26 +0000 (09:45 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 09:45:26 +0000 (09:45 +0000)
Before this patch, dwarfdump's lookup parameter only accepts unsigned.
Given that for many current platforms the load address already exceeds
unsigned (e.g. arm64 w/ 0x100000000), dwarfdump needs an unsigned long
long parameter.

Patch by: Dr. Michael 'Mickey' Lauer <mickey@vanille-media.de>

llvm-svn: 321064

llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

index e4e34ef..12c005d 100644 (file)
@@ -156,8 +156,7 @@ static list<std::string> Name(
          "the -regex option <pattern> is interpreted as a regular expression."),
     value_desc("pattern"), cat(DwarfDumpCategory));
 static alias NameAlias("n", desc("Alias for -name"), aliasopt(Name));
-static opt<unsigned>
-    Lookup("lookup",
+static opt<unsigned long long> Lookup("lookup",
            desc("Lookup <address> in the debug information and print out any"
                 "available file, function, block and line table details."),
            value_desc("address"), cat(DwarfDumpCategory));