LLVM API Documentation

llvm::MCSymbol Class Reference

#include <MCSymbol.h>

Collaboration diagram for llvm::MCSymbol:
[legend]

List of all members.

Public Member Functions

const MCSection * getSection () const
void setSection (const MCSection *S)
bool isExternal () const
void setExternal (bool Value)
const std::string & getName () const
void print (raw_ostream &OS) const
 print - Print the value to the stream
void dump () const
 dump - Print the value to stderr.

Friends

class MCContext


Detailed Description

MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created and unique'd by the MCContext class.

If the symbol is defined/emitted into the current translation unit, the Section member is set to indicate what section it lives in. Otherwise, if it is a reference to an external entity, it has a null section.

Definition at line 32 of file MCSymbol.h.


Member Function Documentation

const MCSection* llvm::MCSymbol::getSection (  )  const [inline]

Definition at line 58 of file MCSymbol.h.

References ARMBuildAttrs::Section.

Referenced by llvm::MCValue::getAssociatedSection().

void llvm::MCSymbol::setSection ( const MCSection *  S  )  [inline]

Definition at line 59 of file MCSymbol.h.

References ARMBuildAttrs::Section.

bool llvm::MCSymbol::isExternal (  )  const [inline]

Definition at line 61 of file MCSymbol.h.

void llvm::MCSymbol::setExternal ( bool  Value  )  [inline]

Definition at line 62 of file MCSymbol.h.

const std::string& llvm::MCSymbol::getName (  )  const [inline]

Definition at line 64 of file MCSymbol.h.

References Name.

Referenced by print().

void MCSymbol::print ( raw_ostream &  OS  )  const

print - Print the value to the stream

  • OS.

Definition at line 40 of file MCSymbol.cpp.

References getName(), and NeedsQuoting().

Referenced by dump(), operator<<(), and llvm::MCValue::print().

void MCSymbol::dump (  )  const

dump - Print the value to stderr.

Definition at line 47 of file MCSymbol.cpp.

References llvm::errs(), and print().


Friends And Related Function Documentation

friend class MCContext [friend]

Definition at line 50 of file MCSymbol.h.


The documentation for this class was generated from the following files: