diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-19 01:50:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-19 01:50:16 +0000 |
commit | cd584a809de8824eea9bcd7f5df59f854413cc76 (patch) | |
tree | c250018fdaa232fe9f5a54f1d731c0f676fd6d3f /llvm/lib/MC/MCELFStreamer.cpp | |
parent | 58e2492f9313953f2e8eb395bb9937b83eec1fbf (diff) | |
download | llvm-cd584a809de8824eea9bcd7f5df59f854413cc76.zip llvm-cd584a809de8824eea9bcd7f5df59f854413cc76.tar.gz llvm-cd584a809de8824eea9bcd7f5df59f854413cc76.tar.bz2 |
Split the object streamer callback in one per file format.
There are two main advantages to doing this
* Targets that only need to handle one of the formats specially don't have
to worry about the others. For example, x86 now only registers a
constructor for the COFF streamer.
* Changes to the arguments passed to one format constructor will not impact
the other formats.
llvm-svn: 232699
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCELFStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index 47d1486..cdf5033 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/lib/MC/MCELFStreamer.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/ELF.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; |