summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/DarwinLdDriver.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-06-20 15:59:00 +0000
committerTim Northover <tnorthover@apple.com>2014-06-20 15:59:00 +0000
commitd30a1f2cb2a5e60eb130b461337cdf9f4d63a606 (patch)
treec92619b1943082b299e95cc498aece8d4fcc4ba1 /lld/lib/Driver/DarwinLdDriver.cpp
parente5bb30d9a75b4dbd01564decdaf1e5bd2b694cfd (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud