diff options
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 6509143862595..0000000000000 --- 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; -}  | 
