summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-29 22:32:02 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-29 22:32:02 +0000
commit7a6b9825cea828916c9f23293f167473b6a61d4e (patch)
treec14bc0ecae09bd2b93368ce290335adea37800dd /llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
parentb67076c0f85992b825d704889e0662753b54580d (diff)
downloadbcm5719-llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.tar.gz
bcm5719-llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.zip
[WebAssembly] Minor clang-format and selected clang-tidy cleanups. NFC.
llvm-svn: 254267
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
index 0cf87a95d62..cfabc21ea4d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
@@ -145,11 +145,9 @@ void WebAssemblyAsmPrinter::EmitJumpTableInfo() {
// Nothing to do; jump tables are incorporated into the instruction stream.
}
-static void ComputeLegalValueVTs(const Function &F,
- const TargetMachine &TM,
- Type *Ty,
- SmallVectorImpl<MVT> &ValueVTs) {
- const DataLayout& DL(F.getParent()->getDataLayout());
+static void ComputeLegalValueVTs(const Function &F, const TargetMachine &TM,
+ Type *Ty, SmallVectorImpl<MVT> &ValueVTs) {
+ const DataLayout &DL(F.getParent()->getDataLayout());
const WebAssemblyTargetLowering &TLI =
*TM.getSubtarget<WebAssemblySubtarget>(F).getTargetLowering();
SmallVector<EVT, 4> VTs;
@@ -172,7 +170,6 @@ void WebAssemblyAsmPrinter::EmitFunctionBodyStart() {
EmitToStreamer(*OutStreamer, Param);
}
-
SmallVector<MVT, 4> ResultVTs;
const Function &F(*MF->getFunction());
ComputeLegalValueVTs(F, TM, F.getReturnType(), ResultVTs);
OpenPOWER on IntegriCloud