aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.h
diff options
context:
space:
mode:
authorVinicius Tinti <viniciustinti@gmail.com>2020-10-16 15:35:19 +0100
committerRenato Golin <rengolin@systemcall.eu>2020-10-16 17:50:42 +0100
commite95f9a23fad52ffa3a5b6466c7dcdf910d099956 (patch)
tree36f0aee9f0648d96f9f77fbc18f2372b03b736d0 /llvm/tools/llvm-objdump/llvm-objdump.h
parent3d4bba302d2460b9ac6463ef920c301f1f40fb41 (diff)
downloadllvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.zip
llvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.tar.gz
llvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.tar.bz2
[llvm-objdump] Implement --prefix option
The prefix given to --prefix will be added to GNU absolute paths when used with --source option (source interleaved with the disassembly). This matches GNU's objdump behavior. GNU and C++17 rules for absolute paths are different. Differential Revision: https://reviews.llvm.org/D85024 Fixes PR46368. Differential Revision: https://reviews.llvm.org/D85024
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h
index 390fc62d..4cee354 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.h
+++ b/llvm/tools/llvm-objdump/llvm-objdump.h
@@ -39,6 +39,7 @@ extern cl::list<std::string> MAttrs;
extern cl::opt<std::string> MCPU;
extern cl::opt<bool> NoShowRawInsn;
extern cl::opt<bool> NoLeadingAddr;
+extern cl::opt<std::string> Prefix;
extern cl::opt<bool> PrintImmHex;
extern cl::opt<bool> PrivateHeaders;
extern cl::opt<bool> Relocations;