[llvm] r256031 - Remove redundant argument. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 13:18:57 PST 2015
Author: rafael
Date: Fri Dec 18 15:18:57 2015
New Revision: 256031
URL: http://llvm.org/viewvc/llvm-project?rev=256031&view=rev
Log:
Remove redundant argument. NFC.
Modified:
llvm/trunk/include/llvm/IR/GVMaterializer.h
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/trunk/lib/IR/Module.cpp
Modified: llvm/trunk/include/llvm/IR/GVMaterializer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GVMaterializer.h?rev=256031&r1=256030&r2=256031&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/GVMaterializer.h (original)
+++ llvm/trunk/include/llvm/IR/GVMaterializer.h Fri Dec 18 15:18:57 2015
@@ -42,7 +42,7 @@ public:
/// Make sure the entire Module has been completely read.
///
- virtual std::error_code materializeModule(Module *M) = 0;
+ virtual std::error_code materializeModule() = 0;
virtual std::error_code materializeMetadata() = 0;
virtual void setStripDebugInfo() = 0;
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=256031&r1=256030&r2=256031&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Fri Dec 18 15:18:57 2015
@@ -254,7 +254,7 @@ public:
void releaseBuffer();
std::error_code materialize(GlobalValue *GV) override;
- std::error_code materializeModule(Module *M) override;
+ std::error_code materializeModule() override;
std::vector<StructType *> getIdentifiedStructTypes() const override;
/// \brief Main interface to parsing a bitcode buffer.
@@ -5283,10 +5283,7 @@ std::error_code BitcodeReader::materiali
return materializeForwardReferencedFunctions();
}
-std::error_code BitcodeReader::materializeModule(Module *M) {
- assert(M == TheModule &&
- "Can only Materialize the Module this BitcodeReader is attached to.");
-
+std::error_code BitcodeReader::materializeModule() {
if (std::error_code EC = materializeMetadata())
return EC;
@@ -5329,7 +5326,7 @@ std::error_code BitcodeReader::materiali
for (unsigned I = 0, E = InstsWithTBAATag.size(); I < E; I++)
UpgradeInstWithTBAATag(InstsWithTBAATag[I]);
- UpgradeDebugInfo(*M);
+ UpgradeDebugInfo(*TheModule);
return std::error_code();
}
Modified: llvm/trunk/lib/IR/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Module.cpp?rev=256031&r1=256030&r2=256031&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Module.cpp (original)
+++ llvm/trunk/lib/IR/Module.cpp Fri Dec 18 15:18:57 2015
@@ -394,7 +394,7 @@ std::error_code Module::materialize(Glob
std::error_code Module::materializeAll() {
if (!Materializer)
return std::error_code();
- if (std::error_code EC = Materializer->materializeModule(this))
+ if (std::error_code EC = Materializer->materializeModule())
return EC;
Materializer.reset();
return std::error_code();
More information about the llvm-commits
mailing list