[llvm] 4ddcb92 - [LTO] Remove OpaquePointers option from config (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 03:38:59 PST 2023
Author: Nikita Popov
Date: 2023-01-25T12:38:52+01:00
New Revision: 4ddcb92a584d976d98702ea5ac09ab1d830d5132
URL: https://github.com/llvm/llvm-project/commit/4ddcb92a584d976d98702ea5ac09ab1d830d5132
DIFF: https://github.com/llvm/llvm-project/commit/4ddcb92a584d976d98702ea5ac09ab1d830d5132.diff
LOG: [LTO] Remove OpaquePointers option from config (NFC)
Always use opaque pointers.
Added:
Modified:
llvm/include/llvm/LTO/Config.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/LTO/Config.h b/llvm/include/llvm/LTO/Config.h
index 7a746592c9fcd..e3c25117a020f 100644
--- a/llvm/include/llvm/LTO/Config.h
+++ b/llvm/include/llvm/LTO/Config.h
@@ -179,10 +179,6 @@ struct Config {
/// Add FSAFDO discriminators.
bool AddFSDiscriminator = false;
- /// Use opaque pointer types. Used to call LLVMContext::setOpaquePointers
- /// unless already set by the `-opaque-pointers` commandline option.
- bool OpaquePointers = true;
-
/// If this field is set, LTO will write input file paths and symbol
/// resolutions here in llvm-lto2 command line flag format. This can be
/// used for testing and for running the LTO pipeline outside of the linker
@@ -298,7 +294,6 @@ struct LTOLLVMContext : LLVMContext {
enableDebugTypeODRUniquing();
setDiagnosticHandler(
std::make_unique<LTOLLVMDiagnosticHandler>(&DiagHandler), true);
- setOpaquePointers(C.OpaquePointers);
}
DiagnosticHandlerFunction DiagHandler;
};
More information about the llvm-commits
mailing list