Skip to content

Commit f69ae09

Browse files
committed
Undo the implementation based on PointerAuthOptions
1 parent 7049fe8 commit f69ae09

File tree

5 files changed

+2
-47
lines changed

5 files changed

+2
-47
lines changed

clang/include/clang/Basic/PointerAuthOptions.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,6 @@ struct PointerAuthOptions {
234234
/// Should return addresses be authenticated?
235235
bool ReturnAddresses = false;
236236

237-
/// Returns all schemas being used.
238-
///
239-
/// Returns all schemas that are mentioned by this instance of
240-
/// PointerAuthOptions (possibly with duplicates).
241-
///
242-
/// FIXME: Handle ReturnAddresses here.
243-
std::vector<PointerAuthSchema> getAllUsedSchemas() const;
244-
245237
/// The ABI for C function pointers.
246238
PointerAuthSchema FunctionPointers;
247239

clang/include/clang/Basic/TargetInfo.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,7 @@ class TargetInfo : public TransferrableTargetInfo,
12621262
virtual void adjust(DiagnosticsEngine &Diags, LangOptions &Opts);
12631263

12641264
/// Adjust target options based on codegen options.
1265-
virtual void adjustTargetOptions(DiagnosticsEngine &Diags,
1266-
const CodeGenOptions &CGOpts,
1265+
virtual void adjustTargetOptions(const CodeGenOptions &CGOpts,
12671266
TargetOptions &TargetOpts) const {}
12681267

12691268
/// Initialize the map with the default set of target features for the

clang/lib/Basic/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ add_clang_library(clangBasic
7676
OpenMPKinds.cpp
7777
OperatorPrecedence.cpp
7878
ParsedAttrInfo.cpp
79-
PointerAuthOptions.cpp
8079
ProfileList.cpp
8180
NoSanitizeList.cpp
8281
SanitizerSpecialCaseList.cpp

clang/lib/Basic/PointerAuthOptions.cpp

Lines changed: 0 additions & 34 deletions
This file was deleted.

clang/lib/Frontend/CompilerInstance.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ bool CompilerInstance::createTarget() {
152152
getTarget().adjust(getDiagnostics(), getLangOpts());
153153

154154
// Adjust target options based on codegen options.
155-
getTarget().adjustTargetOptions(getDiagnostics(), getCodeGenOpts(),
156-
getTargetOpts());
155+
getTarget().adjustTargetOptions(getCodeGenOpts(), getTargetOpts());
157156

158157
if (auto *Aux = getAuxTarget())
159158
getTarget().setAuxTarget(Aux);

0 commit comments

Comments
 (0)