Update for llvm change.

llvm-svn: 309913
This commit is contained in:
Rafael Espindola 2017-08-03 02:16:33 +00:00
parent aa0226ed71
commit eaf1d566ff
2 changed files with 4 additions and 3 deletions

View File

@ -11,10 +11,11 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/ADT/Optional.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetOptions.h"
namespace lld {
llvm::TargetOptions InitTargetOptionsFromCodeGenFlags();
llvm::CodeModel::Model GetCodeModelFromCMModel();
llvm::Optional<llvm::CodeModel::Model> GetCodeModelFromCMModel();
}

View File

@ -27,6 +27,6 @@ llvm::TargetOptions lld::InitTargetOptionsFromCodeGenFlags() {
return ::InitTargetOptionsFromCodeGenFlags();
}
llvm::CodeModel::Model lld::GetCodeModelFromCMModel() {
return CMModel;
llvm::Optional<llvm::CodeModel::Model> lld::GetCodeModelFromCMModel() {
return getCodeModel();
}