CodeGen still defaults to non-verbose asm, but llc now overrides it and default to verbose.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2009-03-25 01:47:28 +00:00
parent 7db860d4de
commit 42bf74be14
55 changed files with 166 additions and 134 deletions
+11 -3
View File
@@ -104,14 +104,22 @@ namespace llvm {
/// IsInTextSection - True if the current section we are emitting to is a
/// text section.
bool IsInTextSection;
/// VerboseAsm - Emit comments in assembly output if this is true.
///
bool VerboseAsm;
protected:
AsmPrinter(raw_ostream &o, TargetMachine &TM,
const TargetAsmInfo *T, bool F);
const TargetAsmInfo *T, bool F, bool V);
public:
virtual ~AsmPrinter();
/// isVerbose - Return true if assembly output should contain comments.
///
bool isVerbose() const { return VerboseAsm; }
/// SwitchToTextSection - Switch to the specified section of the executable
/// if we are not already in it! If GV is non-null and if the global has an
/// explicitly requested section, we switch to the section indicated for the
+12 -2
View File
@@ -174,6 +174,7 @@ public:
static Reloc::Model getRelocationModel();
/// setRelocationModel - Sets the code generation relocation model.
///
static void setRelocationModel(Reloc::Model Model);
/// getCodeModel - Returns the code model. The choices are small, kernel,
@@ -181,8 +182,17 @@ public:
static CodeModel::Model getCodeModel();
/// setCodeModel - Sets the code model.
///
static void setCodeModel(CodeModel::Model Model);
/// getAsmVerbosityDefault - Returns the default value of asm verbosity.
///
static bool getAsmVerbosityDefault();
/// setAsmVerbosityDefault - Set the default value of asm verbosity. Default
/// is false.
static void setAsmVerbosityDefault(bool);
/// CodeGenFileType - These enums are meant to be passed into
/// addPassesToEmitFile to indicate what type of file to emit.
enum CodeGenFileType {
@@ -319,8 +329,8 @@ public:
/// addAssemblyEmitter - This pass should be overridden by the target to add
/// the asmprinter, if asm emission is supported. If this is not supported,
/// 'true' should be returned.
virtual bool addAssemblyEmitter(PassManagerBase &, bool /*Fast*/,
raw_ostream &) {
virtual bool addAssemblyEmitter(PassManagerBase &, bool /*Fast*/,
bool /* VerboseAsmDefault */, raw_ostream &) {
return true;
}
-4
View File
@@ -104,10 +104,6 @@ namespace llvm {
/// realigned, if needed.
extern bool RealignStack;
/// VerboseAsm - When this flag is set, the asm printer prints additional
/// comments to asm directives.
extern bool VerboseAsm;
/// DisableJumpTables - This flag indicates jump tables should not be
/// generated.
extern bool DisableJumpTables;