aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cgdata/llvm-cgdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-cgdata/llvm-cgdata.cpp')
-rw-r--r--llvm/tools/llvm-cgdata/llvm-cgdata.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cgdata/llvm-cgdata.cpp b/llvm/tools/llvm-cgdata/llvm-cgdata.cpp
index 0931cad..d33459b 100644
--- a/llvm/tools/llvm-cgdata/llvm-cgdata.cpp
+++ b/llvm/tools/llvm-cgdata/llvm-cgdata.cpp
@@ -76,6 +76,7 @@ static StringRef ToolName;
static StringRef OutputFilename = "-";
static StringRef Filename;
static bool ShowCGDataVersion;
+static bool SkipTrim;
static CGDataAction Action;
static std::optional<CGDataFormat> OutputFormat;
static std::vector<std::string> InputFilenames;
@@ -214,7 +215,7 @@ static int merge_main(int argc, const char *argv[]) {
if (!Result)
exitWithError("failed to merge codegen data files.");
- GlobalFunctionMapRecord.finalize();
+ GlobalFunctionMapRecord.finalize(SkipTrim);
CodeGenDataWriter Writer;
if (!GlobalOutlineRecord.empty())
@@ -301,6 +302,7 @@ static void parseArgs(int argc, char **argv) {
}
ShowCGDataVersion = Args.hasArg(OPT_cgdata_version);
+ SkipTrim = Args.hasArg(OPT_skip_trim);
if (opt::Arg *A = Args.getLastArg(OPT_format)) {
StringRef OF = A->getValue();