[PATCH] D106474: [NFC][Verifier] Remove redundant Module parameters
Scott Linder via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 10:01:40 PDT 2021
scott.linder updated this revision to Diff 360862.
scott.linder added a comment.
Rebased; there are test failures that I don't think are related to
this change, so I'm hoping a rebase and rerun will resolve them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106474/new/
https://reviews.llvm.org/D106474
Files:
llvm/lib/IR/Verifier.cpp
Index: llvm/lib/IR/Verifier.cpp
===================================================================
--- llvm/lib/IR/Verifier.cpp
+++ llvm/lib/IR/Verifier.cpp
@@ -421,9 +421,9 @@
for (const StringMapEntry<Comdat> &SMEC : M.getComdatSymbolTable())
visitComdat(SMEC.getValue());
- visitModuleFlags(M);
- visitModuleIdents(M);
- visitModuleCommandLines(M);
+ visitModuleFlags();
+ visitModuleIdents();
+ visitModuleCommandLines();
verifyCompileUnits();
@@ -448,9 +448,9 @@
void visitMetadataAsValue(const MetadataAsValue &MD, Function *F);
void visitValueAsMetadata(const ValueAsMetadata &MD, Function *F);
void visitComdat(const Comdat &C);
- void visitModuleIdents(const Module &M);
- void visitModuleCommandLines(const Module &M);
- void visitModuleFlags(const Module &M);
+ void visitModuleIdents();
+ void visitModuleCommandLines();
+ void visitModuleFlags();
void visitModuleFlag(const MDNode *Op,
DenseMap<const MDString *, const MDNode *> &SeenIDs,
SmallVectorImpl<const MDNode *> &Requirements);
@@ -1470,7 +1470,7 @@
"comdat global value has private linkage", GV);
}
-void Verifier::visitModuleIdents(const Module &M) {
+void Verifier::visitModuleIdents() {
const NamedMDNode *Idents = M.getNamedMetadata("llvm.ident");
if (!Idents)
return;
@@ -1487,7 +1487,7 @@
}
}
-void Verifier::visitModuleCommandLines(const Module &M) {
+void Verifier::visitModuleCommandLines() {
const NamedMDNode *CommandLines = M.getNamedMetadata("llvm.commandline");
if (!CommandLines)
return;
@@ -1505,7 +1505,7 @@
}
}
-void Verifier::visitModuleFlags(const Module &M) {
+void Verifier::visitModuleFlags() {
const NamedMDNode *Flags = M.getModuleFlagsMetadata();
if (!Flags) return;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106474.360862.patch
Type: text/x-patch
Size: 1833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/9f6513eb/attachment.bin>
More information about the llvm-commits
mailing list