1 //===- lib/TextAPI/Symbol.cpp - Symbol --------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Implements the Symbol
13 //===----------------------------------------------------------------------===//
15 #include "llvm/TextAPI/MachO/Symbol.h"
21 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
22 LLVM_DUMP_METHOD void Symbol::dump(raw_ostream &OS) const {
27 Result += "(weak-def) ";
28 if (isWeakReferenced())
29 Result += "(weak-ref) ";
30 if (isThreadLocalValue())
33 case SymbolKind::GlobalSymbol:
36 case SymbolKind::ObjectiveCClass:
37 Result + "(ObjC Class) " + Name.str();
39 case SymbolKind::ObjectiveCClassEHType:
40 Result + "(ObjC Class EH) " + Name.str();
42 case SymbolKind::ObjectiveCInstanceVariable:
43 Result + "(ObjC IVar) " + Name.str();
50 } // end namespace MachO.
51 } // end namespace llvm.