aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-05-02 03:11:50 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-05-02 03:11:50 +0000
commit4f1ea1e9d9d5e35d5c49068a5fc010c296fd3085 (patch)
tree5fa5d0bd7a9bad07d5fea7b987b5a3d4b2e48be4 /include/llvm/CodeGen/AsmPrinter.h
parentc884db47f1a1d5449b749e6528292451e49025e4 (diff)
Finish support for Microsoft ML/MASM. May still be a few rough edges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 93c2f2b114..739c1a3ff0 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -26,10 +26,12 @@ namespace llvm {
class GlobalVariable;
class AsmPrinter : public MachineFunctionPass {
+ protected:
/// CurrentSection - The current section we are emitting to. This is
/// controlled and used by the SwitchSection method.
std::string CurrentSection;
+ private:
/// FunctionNumber - This provides a unique ID for each function emitted in
/// this translation unit. It is autoincremented by SetupMachineFunction,
/// and can be accessed with getFunctionNumber() and
@@ -185,7 +187,7 @@ namespace llvm {
/// If the new section is an empty string, this method forgets what the
/// current section is, but does not emit a .section directive.
///
- void SwitchSection(const char *NewSection, const GlobalValue *GV);
+ virtual void SwitchSection(const char *NewSection, const GlobalValue *GV);
/// getPreferredAlignmentLog - Return the preferred alignment of the
/// specified global, returned in log form. This includes an explicitly