diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:08:33 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:08:33 +0000 |
| commit | 20d35e67e67f106f617c939725101223211659f0 (patch) | |
| tree | 64eb963cbf5ba58765e0a6b64a440965d66a7a4d /wasm/InputSegment.cpp | |
| parent | ae1a339de31cf4065777531959a11e55a2e5fa00 (diff) | |
Notes
Diffstat (limited to 'wasm/InputSegment.cpp')
| -rw-r--r-- | wasm/InputSegment.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/wasm/InputSegment.cpp b/wasm/InputSegment.cpp deleted file mode 100644 index 650914386259..000000000000 --- a/wasm/InputSegment.cpp +++ /dev/null @@ -1,25 +0,0 @@ -//===- InputSegment.cpp ---------------------------------------------------===// -// -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "InputSegment.h" -#include "OutputSegment.h" -#include "lld/Common/LLVM.h" - -#define DEBUG_TYPE "lld" - -using namespace llvm; -using namespace lld::wasm; - -uint32_t InputSegment::translateVA(uint32_t Address) const { - assert(Address >= startVA() && Address < endVA()); - int32_t Delta = OutputSeg->StartVA + OutputSegmentOffset - startVA(); - DEBUG(dbgs() << "translateVA: " << getName() << " Delta=" << Delta - << " Address=" << Address << "\n"); - return Address + Delta; -} |
