LLVM API Documentation

MCSymbol.cpp File Reference

#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/raw_ostream.h"

Include dependency graph for MCSymbol.cpp:

Go to the source code of this file.

Functions

static bool NeedsQuoting (const StringRef &Str)


Function Documentation

static bool NeedsQuoting ( const StringRef &  Str  )  [inline, static]

NeedsQuoting - Return true if the string

  • Str needs quoting, i.e., it does not match [a-zA-Z_.][a-zA-Z0-9_.]*.

Definition at line 19 of file MCSymbol.cpp.

References llvm::StringRef::empty(), and llvm::StringRef::size().

Referenced by llvm::MCSymbol::print().