diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:15:21 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:15:21 +0000 |
commit | f8dc8aac3c8d19cc5edb2081bb729eb4f6e1dfc5 (patch) | |
tree | f18eb03162b62b761eda672940b7035d9b6908c1 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 076e905b9480a75a33f5bbf56f26ecd2d8e88dc2 (diff) | |
download | bcm5719-llvm-f8dc8aac3c8d19cc5edb2081bb729eb4f6e1dfc5.tar.gz bcm5719-llvm-f8dc8aac3c8d19cc5edb2081bb729eb4f6e1dfc5.zip |
Get rid of duplicate char*/Section* TextSection
llvm-svn: 56574
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 9fc57a9545c..3c25ab73b21 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -114,6 +114,7 @@ void AsmPrinter::SwitchToSection(const Section* NS) { // FIXME: Make CurrentSection a Section* in the future CurrentSection = NewSection; + CurrentSection_ = NS; if (!CurrentSection.empty()) { // If section is named we need to switch into it via special '.section' @@ -174,7 +175,7 @@ bool AsmPrinter::doFinalization(Module &M) { if (TAI->getSetDirective()) { if (!M.alias_empty()) - SwitchToTextSection(TAI->getTextSection()); + SwitchToSection(TAI->getTextSection()); O << '\n'; for (Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end(); |