mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update DebugInfo option location
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include "clang/Lex/PreprocessorOptions.h"
|
||||
#include "clang/Lex/HeaderSearch.h"
|
||||
#include "clang/Lex/HeaderSearchOptions.h"
|
||||
#include "clang/Basic/CodeGenOptions.h"
|
||||
#include "llvm/Frontend/Debug/Options.h"
|
||||
#include "llvm/IR/IRBuilder.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
@@ -102,14 +102,14 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
|
||||
CGO.DiscardValueNames = !Opts.shouldProvideValueNames();
|
||||
switch (Opts.DebugInfoLevel) {
|
||||
case IRGenDebugInfoLevel::None:
|
||||
CGO.setDebugInfo(clang::codegenoptions::DebugInfoKind::NoDebugInfo);
|
||||
CGO.setDebugInfo(llvm::codegenoptions::DebugInfoKind::NoDebugInfo);
|
||||
break;
|
||||
case IRGenDebugInfoLevel::LineTables:
|
||||
CGO.setDebugInfo(clang::codegenoptions::DebugInfoKind::DebugLineTablesOnly);
|
||||
CGO.setDebugInfo(llvm::codegenoptions::DebugInfoKind::DebugLineTablesOnly);
|
||||
break;
|
||||
case IRGenDebugInfoLevel::ASTTypes:
|
||||
case IRGenDebugInfoLevel::DwarfTypes:
|
||||
CGO.setDebugInfo(clang::codegenoptions::DebugInfoKind::FullDebugInfo);
|
||||
CGO.setDebugInfo(llvm::codegenoptions::DebugInfoKind::FullDebugInfo);
|
||||
break;
|
||||
}
|
||||
switch (Opts.DebugInfoFormat) {
|
||||
|
||||
Reference in New Issue
Block a user