Revert "Make the DWARF version emitted by the Swift compiler configurable."

This commit is contained in:
Adrian Prantl
2023-10-25 13:28:28 -07:00
committed by GitHub
parent 12b500878c
commit 2a32ca5944
19 changed files with 69 additions and 104 deletions

View File

@@ -36,6 +36,7 @@
#include "swift/AST/TBDGenRequests.h"
#include "swift/AST/TypeRefinementContext.h"
#include "swift/Basic/Defer.h"
#include "swift/Basic/Dwarf.h"
#include "swift/Basic/Edit.h"
#include "swift/Basic/FileSystem.h"
#include "swift/Basic/LLVMInitialize.h"
@@ -2240,9 +2241,9 @@ int swift::performFrontend(ArrayRef<const char *> Args,
trace.emplace(*buffer);
});
// Setting DWARF Version based on frontend options.
// Setting DWARF Version depend on platform
IRGenOptions &IRGenOpts = Invocation.getIRGenOptions();
IRGenOpts.DWARFVersion = IRGenOpts.DWARFVersion;
IRGenOpts.DWARFVersion = swift::DWARFVersion;
// The compiler invocation is now fully configured; notify our observer.
if (observer) {