summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-17 01:39:00 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-17 01:39:00 +0000
commit05ac43fec33181a589748de29c1877a537e91b3b (patch)
treebb3e80ca4e0c0900b6224d492db7b847507abb2c /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parentef8b4e22f7911a6e00efe471553107704c21564c (diff)
downloadbcm5719-llvm-05ac43fec33181a589748de29c1877a537e91b3b.tar.gz
bcm5719-llvm-05ac43fec33181a589748de29c1877a537e91b3b.zip
[WebAssembly] Experimental ELF writer support
This creates the initial infrastructure for writing ELF output files. It doesn't yet have any implementation for encoding instructions. Differential Revision: http://reviews.llvm.org/D15555 llvm-svn: 255869
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index ed7cb1909d9..7a89f788c1a 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -17,7 +17,6 @@
#include "WebAssemblyMachineFunctionInfo.h"
#include "WebAssemblySubtarget.h"
#include "WebAssemblyTargetMachine.h"
-#include "WebAssemblyTargetObjectFile.h"
#include "llvm/CodeGen/Analysis.h"
#include "llvm/CodeGen/CallingConvLower.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
@@ -650,10 +649,3 @@ SDValue WebAssemblyTargetLowering::LowerVASTART(SDValue Op,
//===----------------------------------------------------------------------===//
// WebAssembly Optimization Hooks
//===----------------------------------------------------------------------===//
-
-MCSection *WebAssemblyTargetObjectFile::SelectSectionForGlobal(
- const GlobalValue *GV, SectionKind /*Kind*/, Mangler & /*Mang*/,
- const TargetMachine & /*TM*/) const {
- // TODO: Be more sophisticated than this.
- return isa<Function>(GV) ? getTextSection() : getDataSection();
-}
OpenPOWER on IntegriCloud