Skip to content

Commit 8e55e33

Browse files
committed
[llvm] Remove calls to setOpaquePointers() (NFC)
True is the default (and only possible) value.
1 parent 4136e08 commit 8e55e33

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

llvm/tools/llvm-nm/llvm-nm.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,11 +2267,7 @@ static std::vector<NMSymbol> dumpSymbolNamesFromFile(StringRef Filename) {
22672267
if (error(BufferOrErr.getError(), Filename))
22682268
return SymbolList;
22692269

2270-
// Always enable opaque pointers, to handle archives with mixed typed and
2271-
// opaque pointer bitcode files gracefully. As we're only reading symbols,
2272-
// the used pointer types don't matter.
22732270
LLVMContext Context;
2274-
Context.setOpaquePointers(true);
22752271
LLVMContext *ContextPtr = NoLLVMBitcode ? nullptr : &Context;
22762272
Expected<std::unique_ptr<Binary>> BinaryOrErr =
22772273
createBinary(BufferOrErr.get()->getMemBufferRef(), ContextPtr);

llvm/unittests/Analysis/BasicAliasAnalysisTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ class BasicAATest : public testing::Test {
6666

6767
public:
6868
BasicAATest()
69-
: M("BasicAATest", C), B(C), DL(DLString), TLI(TLII), F(nullptr) {
70-
C.setOpaquePointers(true);
71-
}
69+
: M("BasicAATest", C), B(C), DL(DLString), TLI(TLII), F(nullptr) {}
7270
};
7371

7472
// Check that a function arg can't trivially alias a global when we're accessing

llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ static omp::ScheduleKind getSchedKind(omp::OMPScheduleType SchedType) {
162162
class OpenMPIRBuilderTest : public testing::Test {
163163
protected:
164164
void SetUp() override {
165-
Ctx.setOpaquePointers(true);
166165
M.reset(new Module("MyModule", Ctx));
167166
FunctionType *FTy =
168167
FunctionType::get(Type::getVoidTy(Ctx), {Type::getInt32Ty(Ctx)},

0 commit comments

Comments
 (0)