mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Make the DWARF version emitted by the Swift compiler configurable."
This commit is contained in:
@@ -2472,6 +2472,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.DebugCompilationDir = std::string(cwd.str());
|
||||
}
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_debug_info_format)) {
|
||||
if (A->containsValue("dwarf"))
|
||||
Opts.DebugInfoFormat = IRGenDebugInfoFormat::DWARF;
|
||||
@@ -2501,16 +2502,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
: "-gdwarf_types");
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_dwarf_version)) {
|
||||
unsigned vers;
|
||||
if (!StringRef(A->getValue()).getAsInteger(10, vers) && vers >= 2 &&
|
||||
vers <= 5)
|
||||
Opts.DWARFVersion = vers;
|
||||
else
|
||||
Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value,
|
||||
A->getAsString(Args), A->getValue());
|
||||
}
|
||||
|
||||
for (auto A : Args.getAllArgValues(options::OPT_file_prefix_map)) {
|
||||
auto SplitMap = StringRef(A).split('=');
|
||||
Opts.FilePrefixMap.addMapping(SplitMap.first, SplitMap.second);
|
||||
|
||||
Reference in New Issue
Block a user