diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-06-20 15:59:00 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-06-20 15:59:00 +0000 |
| commit | d30a1f2cb2a5e60eb130b461337cdf9f4d63a606 (patch) | |
| tree | c92619b1943082b299e95cc498aece8d4fcc4ba1 /lld/lib/Driver/DarwinLdDriver.cpp | |
| parent | e5bb30d9a75b4dbd01564decdaf1e5bd2b694cfd (diff) | |
| download | bcm5719-llvm-d30a1f2cb2a5e60eb130b461337cdf9f4d63a606.tar.gz bcm5719-llvm-d30a1f2cb2a5e60eb130b461337cdf9f4d63a606.zip | |
MachO: rename _outputFileType to avoid shadowing parent field.
llvm-svn: 211367
Diffstat (limited to 'lld/lib/Driver/DarwinLdDriver.cpp')
| -rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 069ff3588fa..c6678408768 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -211,7 +211,7 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], // Handle -compatibility_version and -current_version if (llvm::opt::Arg *vers = parsedArgs->getLastArg(OPT_compatibility_version)) { - if (ctx.outputFileType() != llvm::MachO::MH_DYLIB) { + if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) { diagnostics << "error: -compatibility_version can only be used with -dylib\n"; return false; @@ -225,7 +225,7 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], } if (llvm::opt::Arg *vers = parsedArgs->getLastArg(OPT_current_version)) { - if (ctx.outputFileType() != llvm::MachO::MH_DYLIB) { + if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) { diagnostics << "-current_version can only be used with -dylib\n"; return false; } |

