forked from OSchip/llvm-project
Allow targets to specify a comment character
llvm-svn: 15879
This commit is contained in:
parent
9f093edf1a
commit
db00f45936
|
@ -45,9 +45,13 @@ namespace llvm {
|
||||||
// Properties to be set by the derived class ctor, used to configure the
|
// Properties to be set by the derived class ctor, used to configure the
|
||||||
// asmwriter.
|
// asmwriter.
|
||||||
|
|
||||||
|
/// CommentChar - This indicates the comment character used by the
|
||||||
|
/// assembler.
|
||||||
|
const char *CommentChar;
|
||||||
|
|
||||||
/// GlobalPrefix - If this is set to a non-empty string, it is prepended
|
/// GlobalPrefix - If this is set to a non-empty string, it is prepended
|
||||||
/// onto all global symbols. This is often used for "_" or ".".
|
/// onto all global symbols. This is often used for "_" or ".".
|
||||||
const char *GlobalPrefix;
|
const char *GlobalPrefix; // Defaults to ""
|
||||||
|
|
||||||
/// ZeroDirective - this should be set to the directive used to get some
|
/// ZeroDirective - this should be set to the directive used to get some
|
||||||
/// number of zero bytes emitted to the current section. Common cases are
|
/// number of zero bytes emitted to the current section. Common cases are
|
||||||
|
@ -69,6 +73,7 @@ namespace llvm {
|
||||||
|
|
||||||
AsmPrinter(std::ostream &o, TargetMachine &tm)
|
AsmPrinter(std::ostream &o, TargetMachine &tm)
|
||||||
: O(o), TM(tm),
|
: O(o), TM(tm),
|
||||||
|
CommentChar("#"),
|
||||||
GlobalPrefix(""),
|
GlobalPrefix(""),
|
||||||
ZeroDirective("\t.zero\t"),
|
ZeroDirective("\t.zero\t"),
|
||||||
AsciiDirective("\t.ascii\t"),
|
AsciiDirective("\t.ascii\t"),
|
||||||
|
|
Loading…
Reference in New Issue