summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2017-12-02 02:05:06 +0000
committerHeejin Ahn <aheejin@gmail.com>2017-12-02 02:05:06 +0000
commit527f9bdad5e47434aec78bb0ffa3dc299d44b211 (patch)
tree9b577dff8a046ca7b8ff922317e505d39a2a41b9 /include
parent79f1f0032c4d34fa0108b1ad0653b66f1970a322 (diff)
[WebAssembly] Revert r319488 "Add visibility flag to Wasm symbol flags"
This patch reportedly broke one of LLVM bots (ubuntu-gcc7.1-werror). See http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror/builds/3369 for details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/BinaryFormat/Wasm.h4
-rw-r--r--include/llvm/MC/MCSymbolWasm.h4
-rw-r--r--include/llvm/Object/Wasm.h8
3 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/BinaryFormat/Wasm.h b/include/llvm/BinaryFormat/Wasm.h
index f3a58026ed7..26475c27df3 100644
--- a/include/llvm/BinaryFormat/Wasm.h
+++ b/include/llvm/BinaryFormat/Wasm.h
@@ -190,15 +190,11 @@ enum : unsigned {
};
const unsigned WASM_SYMBOL_BINDING_MASK = 0x3;
-const unsigned WASM_SYMBOL_VISIBILITY_MASK = 0x4;
enum : unsigned {
WASM_SYMBOL_BINDING_GLOBAL = 0x0,
WASM_SYMBOL_BINDING_WEAK = 0x1,
WASM_SYMBOL_BINDING_LOCAL = 0x2,
-
- WASM_SYMBOL_VISIBILITY_DEFAULT = 0x0,
- WASM_SYMBOL_VISIBILITY_HIDDEN = 0x4,
};
#define WASM_RELOC(name, value) name = value,
diff --git a/include/llvm/MC/MCSymbolWasm.h b/include/llvm/MC/MCSymbolWasm.h
index 309ebf96d1b..9bae6c582fa 100644
--- a/include/llvm/MC/MCSymbolWasm.h
+++ b/include/llvm/MC/MCSymbolWasm.h
@@ -18,7 +18,6 @@ class MCSymbolWasm : public MCSymbol {
private:
bool IsFunction = false;
bool IsWeak = false;
- bool IsHidden = false;
std::string ModuleName;
SmallVector<wasm::ValType, 1> Returns;
SmallVector<wasm::ValType, 4> Params;
@@ -46,9 +45,6 @@ public:
bool isWeak() const { return IsWeak; }
void setWeak(bool isWeak) { IsWeak = isWeak; }
- bool isHidden() const { return IsHidden; }
- void setHidden(bool isHidden) { IsHidden = isHidden; }
-
const StringRef getModuleName() const { return ModuleName; }
const SmallVector<wasm::ValType, 1> &getReturns() const {
diff --git a/include/llvm/Object/Wasm.h b/include/llvm/Object/Wasm.h
index 504f1b49031..e138faeed34 100644
--- a/include/llvm/Object/Wasm.h
+++ b/include/llvm/Object/Wasm.h
@@ -81,14 +81,6 @@ public:
return Flags & wasm::WASM_SYMBOL_BINDING_MASK;
}
- bool isHidden() const {
- return getVisibility() == wasm::WASM_SYMBOL_VISIBILITY_HIDDEN;
- }
-
- unsigned getVisibility() const {
- return Flags & wasm::WASM_SYMBOL_VISIBILITY_MASK;
- }
-
void print(raw_ostream &Out) const {
Out << "Name=" << Name << ", Type=" << static_cast<int>(Type)
<< ", Flags=" << Flags << " ElemIndex=" << ElementIndex