2017-11-18 02:14:09 +08:00
|
|
|
//===- Symbols.h ------------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_WASM_SYMBOLS_H
|
|
|
|
#define LLD_WASM_SYMBOLS_H
|
|
|
|
|
2018-04-21 01:18:06 +08:00
|
|
|
#include "Config.h"
|
2017-11-18 02:14:09 +08:00
|
|
|
#include "lld/Common/LLVM.h"
|
|
|
|
#include "llvm/Object/Archive.h"
|
|
|
|
#include "llvm/Object/Wasm.h"
|
|
|
|
|
|
|
|
using llvm::object::Archive;
|
2018-02-23 13:08:53 +08:00
|
|
|
using llvm::object::WasmSymbol;
|
|
|
|
using llvm::wasm::WasmGlobal;
|
|
|
|
using llvm::wasm::WasmGlobalType;
|
2018-03-07 21:28:16 +08:00
|
|
|
using llvm::wasm::WasmSignature;
|
2018-02-23 13:08:53 +08:00
|
|
|
using llvm::wasm::WasmSymbolType;
|
2017-11-18 02:14:09 +08:00
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace wasm {
|
|
|
|
|
|
|
|
class InputFile;
|
2018-01-29 03:57:01 +08:00
|
|
|
class InputChunk;
|
2018-02-21 01:45:38 +08:00
|
|
|
class InputSegment;
|
2018-02-17 07:50:23 +08:00
|
|
|
class InputFunction;
|
2018-02-23 13:08:53 +08:00
|
|
|
class InputGlobal;
|
2018-05-05 07:14:42 +08:00
|
|
|
class InputSection;
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-02-15 06:55:38 +08:00
|
|
|
#define INVALID_INDEX UINT32_MAX
|
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
// The base class for real symbol classes.
|
2017-11-18 02:14:09 +08:00
|
|
|
class Symbol {
|
|
|
|
public:
|
|
|
|
enum Kind {
|
|
|
|
DefinedFunctionKind,
|
2018-02-21 07:38:27 +08:00
|
|
|
DefinedDataKind,
|
2018-02-23 13:08:53 +08:00
|
|
|
DefinedGlobalKind,
|
2018-05-05 07:14:42 +08:00
|
|
|
SectionKind,
|
2017-11-18 02:14:09 +08:00
|
|
|
UndefinedFunctionKind,
|
2018-02-21 07:38:27 +08:00
|
|
|
UndefinedDataKind,
|
2018-02-23 13:08:53 +08:00
|
|
|
UndefinedGlobalKind,
|
2018-02-28 08:16:11 +08:00
|
|
|
LazyKind,
|
2017-11-18 02:14:09 +08:00
|
|
|
};
|
|
|
|
|
2018-02-17 04:26:15 +08:00
|
|
|
Kind kind() const { return SymbolKind; }
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-02-28 08:16:11 +08:00
|
|
|
bool isDefined() const {
|
2018-03-07 21:28:16 +08:00
|
|
|
return SymbolKind == DefinedFunctionKind || SymbolKind == DefinedDataKind ||
|
2018-05-05 07:14:42 +08:00
|
|
|
SymbolKind == DefinedGlobalKind || SymbolKind == SectionKind;
|
2018-02-28 08:16:11 +08:00
|
|
|
}
|
|
|
|
|
2017-11-18 02:14:09 +08:00
|
|
|
bool isUndefined() const {
|
2018-02-23 13:08:53 +08:00
|
|
|
return SymbolKind == UndefinedFunctionKind ||
|
|
|
|
SymbolKind == UndefinedDataKind || SymbolKind == UndefinedGlobalKind;
|
2017-11-18 02:14:09 +08:00
|
|
|
}
|
2018-02-28 08:16:11 +08:00
|
|
|
|
|
|
|
bool isLazy() const { return SymbolKind == LazyKind; }
|
|
|
|
|
2018-01-10 08:52:20 +08:00
|
|
|
bool isLocal() const;
|
2017-11-18 02:14:09 +08:00
|
|
|
bool isWeak() const;
|
2017-12-03 10:38:04 +08:00
|
|
|
bool isHidden() const;
|
2017-11-18 02:14:09 +08:00
|
|
|
|
|
|
|
// Returns the symbol name.
|
|
|
|
StringRef getName() const { return Name; }
|
|
|
|
|
|
|
|
// Returns the file from which this symbol was created.
|
|
|
|
InputFile *getFile() const { return File; }
|
2018-02-23 13:08:53 +08:00
|
|
|
|
2018-02-21 01:45:38 +08:00
|
|
|
InputChunk *getChunk() const;
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-04-21 01:18:06 +08:00
|
|
|
// Indicates that the section or import for this symbol will be included in
|
|
|
|
// the final image.
|
2018-02-23 13:08:53 +08:00
|
|
|
bool isLive() const;
|
|
|
|
|
2018-04-21 01:18:06 +08:00
|
|
|
// Marks the symbol's InputChunk as Live, so that it will be included in the
|
|
|
|
// final image.
|
|
|
|
void markLive();
|
|
|
|
|
2018-01-13 06:10:35 +08:00
|
|
|
void setHidden(bool IsHidden);
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-03-13 03:56:23 +08:00
|
|
|
// Get/set the index in the output symbol table. This is only used for
|
|
|
|
// relocatable output.
|
2018-02-23 13:08:53 +08:00
|
|
|
uint32_t getOutputSymbolIndex() const;
|
|
|
|
void setOutputSymbolIndex(uint32_t Index);
|
|
|
|
|
|
|
|
WasmSymbolType getWasmType() const;
|
2018-06-29 01:04:58 +08:00
|
|
|
bool isExported() const;
|
2018-02-23 13:08:53 +08:00
|
|
|
|
2018-05-31 02:07:52 +08:00
|
|
|
// True if this symbol was referenced by a regular (non-bitcode) object.
|
|
|
|
unsigned IsUsedInRegularObj : 1;
|
2018-06-29 01:21:46 +08:00
|
|
|
unsigned ForceExport : 1;
|
2018-05-31 02:07:52 +08:00
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
protected:
|
2018-02-21 01:45:38 +08:00
|
|
|
Symbol(StringRef Name, Kind K, uint32_t Flags, InputFile *F)
|
2018-06-29 01:21:46 +08:00
|
|
|
: IsUsedInRegularObj(false), ForceExport(false), Name(Name),
|
|
|
|
SymbolKind(K), Flags(Flags), File(F), Referenced(!Config->GcSections) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
|
|
|
StringRef Name;
|
|
|
|
Kind SymbolKind;
|
|
|
|
uint32_t Flags;
|
|
|
|
InputFile *File;
|
2018-02-23 13:08:53 +08:00
|
|
|
uint32_t OutputSymbolIndex = INVALID_INDEX;
|
2018-06-21 23:00:00 +08:00
|
|
|
bool Referenced;
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class FunctionSymbol : public Symbol {
|
|
|
|
public:
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == DefinedFunctionKind ||
|
|
|
|
S->kind() == UndefinedFunctionKind;
|
|
|
|
}
|
|
|
|
|
2018-03-13 03:56:23 +08:00
|
|
|
// Get/set the table index
|
|
|
|
void setTableIndex(uint32_t Index);
|
2018-01-25 05:45:25 +08:00
|
|
|
uint32_t getTableIndex() const;
|
|
|
|
bool hasTableIndex() const;
|
2017-12-12 06:00:56 +08:00
|
|
|
|
2018-03-13 03:56:23 +08:00
|
|
|
// Get/set the function index
|
|
|
|
uint32_t getFunctionIndex() const;
|
|
|
|
void setFunctionIndex(uint32_t Index);
|
|
|
|
bool hasFunctionIndex() const;
|
2017-12-12 06:00:56 +08:00
|
|
|
|
2018-06-29 00:53:53 +08:00
|
|
|
const WasmSignature *FunctionType;
|
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
protected:
|
2018-02-17 07:50:23 +08:00
|
|
|
FunctionSymbol(StringRef Name, Kind K, uint32_t Flags, InputFile *F,
|
2018-02-21 01:45:38 +08:00
|
|
|
const WasmSignature *Type)
|
|
|
|
: Symbol(Name, K, Flags, F), FunctionType(Type) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
2018-02-15 06:55:38 +08:00
|
|
|
uint32_t TableIndex = INVALID_INDEX;
|
2018-03-13 03:56:23 +08:00
|
|
|
uint32_t FunctionIndex = INVALID_INDEX;
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class DefinedFunction : public FunctionSymbol {
|
|
|
|
public:
|
2018-02-17 07:50:23 +08:00
|
|
|
DefinedFunction(StringRef Name, uint32_t Flags, InputFile *F,
|
2018-02-21 01:45:38 +08:00
|
|
|
InputFunction *Function);
|
2018-02-15 02:27:59 +08:00
|
|
|
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == DefinedFunctionKind;
|
|
|
|
}
|
2018-02-21 01:45:38 +08:00
|
|
|
|
|
|
|
InputFunction *Function;
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class UndefinedFunction : public FunctionSymbol {
|
|
|
|
public:
|
|
|
|
UndefinedFunction(StringRef Name, uint32_t Flags, InputFile *File = nullptr,
|
|
|
|
const WasmSignature *Type = nullptr)
|
2018-02-17 07:50:23 +08:00
|
|
|
: FunctionSymbol(Name, UndefinedFunctionKind, Flags, File, Type) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == UndefinedFunctionKind;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-05-05 07:14:42 +08:00
|
|
|
class SectionSymbol : public Symbol {
|
|
|
|
public:
|
|
|
|
static bool classof(const Symbol *S) { return S->kind() == SectionKind; }
|
|
|
|
|
|
|
|
SectionSymbol(StringRef Name, uint32_t Flags, const InputSection *S,
|
|
|
|
InputFile *F = nullptr)
|
|
|
|
: Symbol(Name, SectionKind, Flags, F), Section(S) {}
|
|
|
|
|
|
|
|
const InputSection *Section;
|
|
|
|
|
|
|
|
uint32_t getOutputSectionIndex() const;
|
|
|
|
void setOutputSectionIndex(uint32_t Index);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
uint32_t OutputSectionIndex = INVALID_INDEX;
|
|
|
|
};
|
|
|
|
|
2018-02-21 07:38:27 +08:00
|
|
|
class DataSymbol : public Symbol {
|
2018-02-15 02:27:59 +08:00
|
|
|
public:
|
|
|
|
static bool classof(const Symbol *S) {
|
2018-02-21 07:38:27 +08:00
|
|
|
return S->kind() == DefinedDataKind || S->kind() == UndefinedDataKind;
|
2018-02-15 02:27:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
2018-02-21 07:38:27 +08:00
|
|
|
DataSymbol(StringRef Name, Kind K, uint32_t Flags, InputFile *F)
|
2018-02-21 01:45:38 +08:00
|
|
|
: Symbol(Name, K, Flags, F) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
2018-02-21 07:38:27 +08:00
|
|
|
class DefinedData : public DataSymbol {
|
2018-02-15 02:27:59 +08:00
|
|
|
public:
|
2018-04-27 13:50:40 +08:00
|
|
|
// Constructor for regular data symbols originating from input files.
|
2018-02-23 13:08:53 +08:00
|
|
|
DefinedData(StringRef Name, uint32_t Flags, InputFile *F,
|
|
|
|
InputSegment *Segment, uint32_t Offset, uint32_t Size)
|
2018-02-21 07:38:27 +08:00
|
|
|
: DataSymbol(Name, DefinedDataKind, Flags, F), Segment(Segment),
|
2018-02-23 13:08:53 +08:00
|
|
|
Offset(Offset), Size(Size) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
2018-02-23 13:08:53 +08:00
|
|
|
// Constructor for linker synthetic data symbols.
|
|
|
|
DefinedData(StringRef Name, uint32_t Flags)
|
|
|
|
: DataSymbol(Name, DefinedDataKind, Flags, nullptr) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
2018-02-23 13:08:53 +08:00
|
|
|
static bool classof(const Symbol *S) { return S->kind() == DefinedDataKind; }
|
|
|
|
|
|
|
|
// Returns the output virtual address of a defined data symbol.
|
2018-01-09 07:39:11 +08:00
|
|
|
uint32_t getVirtualAddress() const;
|
2017-12-06 03:05:45 +08:00
|
|
|
void setVirtualAddress(uint32_t VA);
|
|
|
|
|
2018-02-23 13:08:53 +08:00
|
|
|
// Returns the offset of a defined data symbol within its OutputSegment.
|
|
|
|
uint32_t getOutputSegmentOffset() const;
|
|
|
|
uint32_t getOutputSegmentIndex() const;
|
|
|
|
uint32_t getSize() const { return Size; }
|
|
|
|
|
|
|
|
InputSegment *Segment = nullptr;
|
2018-02-21 01:45:38 +08:00
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
protected:
|
2018-02-23 13:08:53 +08:00
|
|
|
uint32_t Offset = 0;
|
|
|
|
uint32_t Size = 0;
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
2018-02-21 07:38:27 +08:00
|
|
|
class UndefinedData : public DataSymbol {
|
2018-02-15 02:27:59 +08:00
|
|
|
public:
|
2018-02-21 07:38:27 +08:00
|
|
|
UndefinedData(StringRef Name, uint32_t Flags, InputFile *File = nullptr)
|
|
|
|
: DataSymbol(Name, UndefinedDataKind, Flags, File) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
static bool classof(const Symbol *S) {
|
2018-02-21 07:38:27 +08:00
|
|
|
return S->kind() == UndefinedDataKind;
|
2018-02-15 02:27:59 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-02-23 13:08:53 +08:00
|
|
|
class GlobalSymbol : public Symbol {
|
|
|
|
public:
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == DefinedGlobalKind || S->kind() == UndefinedGlobalKind;
|
|
|
|
}
|
|
|
|
|
|
|
|
const WasmGlobalType *getGlobalType() const { return GlobalType; }
|
|
|
|
|
2018-03-13 03:56:23 +08:00
|
|
|
// Get/set the global index
|
|
|
|
uint32_t getGlobalIndex() const;
|
|
|
|
void setGlobalIndex(uint32_t Index);
|
|
|
|
bool hasGlobalIndex() const;
|
|
|
|
|
2018-02-23 13:08:53 +08:00
|
|
|
protected:
|
|
|
|
GlobalSymbol(StringRef Name, Kind K, uint32_t Flags, InputFile *F,
|
|
|
|
const WasmGlobalType *GlobalType)
|
|
|
|
: Symbol(Name, K, Flags, F), GlobalType(GlobalType) {}
|
|
|
|
|
|
|
|
// Explicit function type, needed for undefined or synthetic functions only.
|
|
|
|
// For regular defined globals this information comes from the InputChunk.
|
|
|
|
const WasmGlobalType *GlobalType;
|
2018-03-13 03:56:23 +08:00
|
|
|
uint32_t GlobalIndex = INVALID_INDEX;
|
2018-02-23 13:08:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class DefinedGlobal : public GlobalSymbol {
|
|
|
|
public:
|
|
|
|
DefinedGlobal(StringRef Name, uint32_t Flags, InputFile *File,
|
|
|
|
InputGlobal *Global);
|
|
|
|
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == DefinedGlobalKind;
|
|
|
|
}
|
|
|
|
|
|
|
|
InputGlobal *Global;
|
|
|
|
};
|
|
|
|
|
|
|
|
class UndefinedGlobal : public GlobalSymbol {
|
|
|
|
public:
|
|
|
|
UndefinedGlobal(StringRef Name, uint32_t Flags, InputFile *File = nullptr,
|
|
|
|
const WasmGlobalType *Type = nullptr)
|
|
|
|
: GlobalSymbol(Name, UndefinedGlobalKind, Flags, File, Type) {}
|
|
|
|
|
|
|
|
static bool classof(const Symbol *S) {
|
|
|
|
return S->kind() == UndefinedGlobalKind;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
class LazySymbol : public Symbol {
|
|
|
|
public:
|
|
|
|
LazySymbol(StringRef Name, InputFile *File, const Archive::Symbol &Sym)
|
2018-02-21 01:45:38 +08:00
|
|
|
: Symbol(Name, LazyKind, 0, File), ArchiveSymbol(Sym) {}
|
2018-02-15 02:27:59 +08:00
|
|
|
|
|
|
|
static bool classof(const Symbol *S) { return S->kind() == LazyKind; }
|
2018-03-01 06:51:51 +08:00
|
|
|
void fetch();
|
2017-11-18 02:14:09 +08:00
|
|
|
|
2018-03-01 06:51:51 +08:00
|
|
|
private:
|
2018-02-15 02:27:59 +08:00
|
|
|
Archive::Symbol ArchiveSymbol;
|
2017-11-18 02:14:09 +08:00
|
|
|
};
|
|
|
|
|
2018-02-03 06:59:56 +08:00
|
|
|
// linker-generated symbols
|
|
|
|
struct WasmSym {
|
|
|
|
// __stack_pointer
|
2018-02-07 11:04:53 +08:00
|
|
|
// Global that holds the address of the top of the explicit value stack in
|
|
|
|
// linear memory.
|
2018-02-23 13:08:53 +08:00
|
|
|
static DefinedGlobal *StackPointer;
|
2018-02-03 06:59:56 +08:00
|
|
|
|
2018-02-07 11:04:53 +08:00
|
|
|
// __data_end
|
|
|
|
// Symbol marking the end of the data and bss.
|
2018-02-21 07:38:27 +08:00
|
|
|
static DefinedData *DataEnd;
|
2018-02-07 11:04:53 +08:00
|
|
|
|
2018-02-03 06:59:56 +08:00
|
|
|
// __heap_base
|
2018-02-07 11:04:53 +08:00
|
|
|
// Symbol marking the end of the data, bss and explicit stack. Any linear
|
|
|
|
// memory following this address is not used by the linked code and can
|
|
|
|
// therefore be used as a backing store for brk()/malloc() implementations.
|
2018-02-21 07:38:27 +08:00
|
|
|
static DefinedData *HeapBase;
|
2018-02-03 06:59:56 +08:00
|
|
|
|
|
|
|
// __wasm_call_ctors
|
|
|
|
// Function that directly calls all ctors in priority order.
|
2018-02-15 02:27:59 +08:00
|
|
|
static DefinedFunction *CallCtors;
|
2018-02-03 06:59:56 +08:00
|
|
|
|
|
|
|
// __dso_handle
|
2018-02-21 07:38:27 +08:00
|
|
|
// Symbol used in calls to __cxa_atexit to determine current DLL
|
|
|
|
static DefinedData *DsoHandle;
|
2018-11-15 08:37:21 +08:00
|
|
|
|
|
|
|
// __table_base
|
|
|
|
// Used in PIC code for offset of indirect function table
|
|
|
|
static Symbol *TableBase;
|
|
|
|
|
|
|
|
// __memory_base
|
|
|
|
// Used in PIC code for offset of global data
|
|
|
|
static Symbol *MemoryBase;
|
2018-02-15 02:27:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
// A buffer class that is large enough to hold any Symbol-derived
|
|
|
|
// object. We allocate memory using this class and instantiate a symbol
|
|
|
|
// using the placement new.
|
|
|
|
union SymbolUnion {
|
|
|
|
alignas(DefinedFunction) char A[sizeof(DefinedFunction)];
|
2018-02-21 07:38:27 +08:00
|
|
|
alignas(DefinedData) char B[sizeof(DefinedData)];
|
2018-02-23 13:08:53 +08:00
|
|
|
alignas(DefinedGlobal) char C[sizeof(DefinedGlobal)];
|
|
|
|
alignas(LazySymbol) char D[sizeof(LazySymbol)];
|
|
|
|
alignas(UndefinedFunction) char E[sizeof(UndefinedFunction)];
|
|
|
|
alignas(UndefinedData) char F[sizeof(UndefinedData)];
|
|
|
|
alignas(UndefinedGlobal) char G[sizeof(UndefinedGlobal)];
|
2018-05-05 07:14:42 +08:00
|
|
|
alignas(SectionSymbol) char I[sizeof(SectionSymbol)];
|
2018-02-03 06:59:56 +08:00
|
|
|
};
|
|
|
|
|
2018-02-15 02:27:59 +08:00
|
|
|
template <typename T, typename... ArgT>
|
|
|
|
T *replaceSymbol(Symbol *S, ArgT &&... Arg) {
|
2018-02-15 06:55:38 +08:00
|
|
|
static_assert(std::is_trivially_destructible<T>(),
|
|
|
|
"Symbol types must be trivially destructible");
|
2018-02-15 02:27:59 +08:00
|
|
|
static_assert(sizeof(T) <= sizeof(SymbolUnion), "Symbol too small");
|
|
|
|
static_assert(alignof(T) <= alignof(SymbolUnion),
|
|
|
|
"SymbolUnion not aligned enough");
|
2018-02-15 06:43:43 +08:00
|
|
|
assert(static_cast<Symbol *>(static_cast<T *>(nullptr)) == nullptr &&
|
|
|
|
"Not a Symbol");
|
2018-05-31 02:07:52 +08:00
|
|
|
|
|
|
|
Symbol SymCopy = *S;
|
|
|
|
|
|
|
|
T *S2 = new (S) T(std::forward<ArgT>(Arg)...);
|
|
|
|
S2->IsUsedInRegularObj = SymCopy.IsUsedInRegularObj;
|
2018-06-29 01:21:46 +08:00
|
|
|
S2->ForceExport = SymCopy.ForceExport;
|
2018-05-31 02:07:52 +08:00
|
|
|
return S2;
|
2018-02-15 02:27:59 +08:00
|
|
|
}
|
|
|
|
|
2017-11-18 02:14:09 +08:00
|
|
|
} // namespace wasm
|
|
|
|
|
|
|
|
// Returns a symbol name for an error message.
|
2018-03-10 06:59:34 +08:00
|
|
|
std::string toString(const wasm::Symbol &Sym);
|
2017-12-06 00:50:46 +08:00
|
|
|
std::string toString(wasm::Symbol::Kind Kind);
|
2018-11-10 00:57:41 +08:00
|
|
|
std::string maybeDemangleSymbol(StringRef Name);
|
2017-11-18 02:14:09 +08:00
|
|
|
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|