diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-16 01:08:29 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-16 01:08:29 +0000 |
| commit | 58ac6e167722cc6ab187546062a1d23184976835 (patch) | |
| tree | 2e5643c7d5ee0e6fa7b52588c6fea11251e4910e /llvm/lib/MC/MCMachOStreamer.cpp | |
| parent | b5f1e46d30e3e0fa0a2a779b8434279c1715f136 (diff) | |
| download | bcm5719-llvm-58ac6e167722cc6ab187546062a1d23184976835.tar.gz bcm5719-llvm-58ac6e167722cc6ab187546062a1d23184976835.zip | |
Add support for pushsection and popsection. Patch by Joerg Sonnenberger.
llvm-svn: 125629
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index 7e1cda25b6f..d1f9f5cd568 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -105,7 +105,7 @@ void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) { assert(Symbol->isUndefined() && "Cannot define a symbol twice!"); // isSymbolLinkerVisible uses the section. - Symbol->setSection(*CurSection); + Symbol->setSection(*getCurrentSection()); // We have to create a new fragment if this is an atom defining symbol, // fragments cannot span atoms. if (getAssembler().isSymbolLinkerVisible(*Symbol)) |

