There was an error while loading. Please reload this page.
1 parent ab32e3f commit ae51f61Copy full SHA for ae51f61
llvm/include/llvm/TableGen/CodeGenHelpers.h
@@ -47,14 +47,13 @@ class IfDefEmitter {
47
};
48
49
// Simple RAII helper for emitting #if guard. It emits:
50
-// <IfGuard> <Condition>
+// #if <Condition>
51
// #endif // <Condition>
52
class IfGuardEmitter {
53
public:
54
- IfGuardEmitter(raw_ostream &OS, StringRef Condition,
55
- StringRef IfGuard = "#if")
+ IfGuardEmitter(raw_ostream &OS, StringRef Condition)
56
: Condition(Condition.str()), OS(OS) {
57
- OS << IfGuard << " " << Condition << "\n\n";
+ OS << "#if " << Condition << "\n\n";
58
}
59
60
~IfGuardEmitter() { OS << "\n#endif // " << Condition << "\n\n"; }
0 commit comments