aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-25 01:47:28 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-25 01:47:28 +0000
commit42ceb47150b2d423f9668c7b128b90927ac22cb0 (patch)
treeffd7617c63f7c380d36cc21404c2acf883c44191 /include/llvm/CodeGen/AsmPrinter.h
parent4c7969ed6d28ce12dc1028fd76bdc03b2f68dc50 (diff)
downloadexternal_llvm-42ceb47150b2d423f9668c7b128b90927ac22cb0.zip
external_llvm-42ceb47150b2d423f9668c7b128b90927ac22cb0.tar.gz
external_llvm-42ceb47150b2d423f9668c7b128b90927ac22cb0.tar.bz2
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
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index c0ef133..37bc99d 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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