We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67f06b3 commit 7a831f1Copy full SHA for 7a831f1
skeleton/Skeleton.cpp
@@ -9,7 +9,7 @@ namespace {
9
10
struct SkeletonPass : public PassInfoMixin<SkeletonPass> {
11
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM) {
12
- for (auto &F : M.functions()) {
+ for (auto &F : M) {
13
errs() << "I saw a function called " << F.getName() << "!\n";
14
}
15
return PreservedAnalyses::all();
0 commit comments