Skip to content

Commit 2c3cae3

Browse files
committed
Remove unused clang::TargetInfo::adjustTargetOptions
The hook introduced by https://reviews.llvm.org/D22815 for AMDGPU was removed by commit ce2258c in 2020.
1 parent d1c643a commit 2c3cae3

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,10 +1260,6 @@ class TargetInfo : public TransferrableTargetInfo,
12601260
/// the language based on the target options where applicable.
12611261
virtual void adjust(DiagnosticsEngine &Diags, LangOptions &Opts);
12621262

1263-
/// Adjust target options based on codegen options.
1264-
virtual void adjustTargetOptions(const CodeGenOptions &CGOpts,
1265-
TargetOptions &TargetOpts) const {}
1266-
12671263
/// Initialize the map with the default set of target features for the
12681264
/// CPU this should include all legal feature strings on the target.
12691265
///

clang/lib/Frontend/CompilerInstance.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ bool CompilerInstance::createTarget() {
151151
// created. This complexity should be lifted elsewhere.
152152
getTarget().adjust(getDiagnostics(), getLangOpts());
153153

154-
// Adjust target options based on codegen options.
155-
getTarget().adjustTargetOptions(getCodeGenOpts(), getTargetOpts());
156-
157154
if (auto *Aux = getAuxTarget())
158155
getTarget().setAuxTarget(Aux);
159156

0 commit comments

Comments
 (0)