aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2022-03-21 16:03:48 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2022-03-21 16:04:36 -0700
commit9c96a6bbfdde665b5c2389100a15acdeea0f4145 (patch)
treee8c955a3f3d24c36ffa2cbe3073fc5dd83cec1ab /llvm/lib/IR/LLVMContextImpl.cpp
parenta80c6c7d36d25999a28cfad32e1f461db95ba4dc (diff)
downloadllvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.zip
llvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.tar.gz
llvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.tar.bz2
Revert "[OpaquePtr][LLParser] Automatically detect opaque pointers in .ll files"
This reverts commit 295172ef51c6b9a73bc0fdcfd25f8c41ead9034a. Reason: Broke the ASan buildbot. More details are available on the original Phab review at https://reviews.llvm.org/D119482.
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index 401af7a..8f95302 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -47,11 +47,7 @@ LLVMContextImpl::LLVMContextImpl(LLVMContext &C)
X86_FP80Ty(C, Type::X86_FP80TyID), FP128Ty(C, Type::FP128TyID),
PPC_FP128Ty(C, Type::PPC_FP128TyID), X86_MMXTy(C, Type::X86_MMXTyID),
X86_AMXTy(C, Type::X86_AMXTyID), Int1Ty(C, 1), Int8Ty(C, 8),
- Int16Ty(C, 16), Int32Ty(C, 32), Int64Ty(C, 64), Int128Ty(C, 128) {
- if (OpaquePointersCL.getNumOccurrences()) {
- OpaquePointers = OpaquePointersCL;
- }
-}
+ Int16Ty(C, 16), Int32Ty(C, 32), Int64Ty(C, 64), Int128Ty(C, 128) {}
LLVMContextImpl::~LLVMContextImpl() {
// NOTE: We need to delete the contents of OwnedModules, but Module's dtor
@@ -249,13 +245,9 @@ void LLVMContextImpl::setOptPassGate(OptPassGate& OPG) {
this->OPG = &OPG;
}
-bool LLVMContextImpl::hasOpaquePointersValue() {
- return OpaquePointers.hasValue();
-}
-
bool LLVMContextImpl::getOpaquePointers() {
if (LLVM_UNLIKELY(!(OpaquePointers.hasValue())))
- OpaquePointers = false;
+ OpaquePointers = OpaquePointersCL;
return *OpaquePointers;
}