[llvm] r340861 - [WebAssembly][NFC] Fix formatting from rL340781
Thomas Lively via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 28 11:34:33 PDT 2018
Author: tlively
Date: Tue Aug 28 11:34:33 2018
New Revision: 340861
URL: http://llvm.org/viewvc/llvm-project?rev=340861&view=rev
Log:
[WebAssembly][NFC] Fix formatting from rL340781
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D51367
Modified:
llvm/trunk/utils/TableGen/WebAssemblyStackifierEmitter.cpp
Modified: llvm/trunk/utils/TableGen/WebAssemblyStackifierEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/WebAssemblyStackifierEmitter.cpp?rev=340861&r1=340860&r2=340861&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/WebAssemblyStackifierEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/WebAssemblyStackifierEmitter.cpp Tue Aug 28 11:34:33 2018
@@ -20,9 +20,11 @@ namespace llvm {
void EmitWebAssemblyStackifier(RecordKeeper &RK, raw_ostream &OS) {
Record *InstrClass = RK.getClass("WebAssemblyInst");
for (auto &RecordPair : RK.getDefs()) {
- if (!RecordPair.second->isSubClassOf(InstrClass)) continue;
+ if (!RecordPair.second->isSubClassOf(InstrClass))
+ continue;
bool IsStackBased = RecordPair.second->getValueAsBit("StackBased");
- if (IsStackBased) continue;
+ if (IsStackBased)
+ continue;
OS << " case WebAssembly::" << RecordPair.first << ": return "
<< "WebAssembly::" << RecordPair.first << "_S; break;\n";
}
More information about the llvm-commits
mailing list