aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-05-02 03:58:45 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-05-02 03:58:45 +0000
commit51b776d25915ca7fbfc14578ff479352a772da06 (patch)
treeb8d009e5524555f69bd9a0e00a8ba8fc84a9f392 /include/llvm/CodeGen
parentc6a057b04db506152c98355b51ba15d82a15b90a (diff)
downloadexternal_llvm-51b776d25915ca7fbfc14578ff479352a772da06.zip
external_llvm-51b776d25915ca7fbfc14578ff479352a772da06.tar.gz
external_llvm-51b776d25915ca7fbfc14578ff479352a772da06.tar.bz2
De-virtualize SwitchSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 8a13873..a40185b 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -26,12 +26,10 @@ 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
@@ -139,6 +137,7 @@ namespace llvm {
/// emit a global to an arbitrary section. The section name is emited after
/// this.
const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
+ bool MLSections; // True if Microsoft ML assembler is targetted
/// ConstantPoolSection - This is the section that we SwitchToSection right
/// before emitting the constant pool for a function.
@@ -188,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.
///
- virtual void SwitchSection(const char *NewSection, const GlobalValue *GV);
+ 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