r207642 - Android uses -fpic for arm64 as well.

Logan Chien tzuhsiang.chien at gmail.com
Wed Apr 30 05:18:13 PDT 2014


Author: logan
Date: Wed Apr 30 07:18:12 2014
New Revision: 207642

URL: http://llvm.org/viewvc/llvm-project?rev=207642&view=rev
Log:
Android uses -fpic for arm64 as well.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp
    cfe/trunk/test/Driver/pic.c

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=207642&r1=207641&r2=207642&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Apr 30 07:18:12 2014
@@ -2370,6 +2370,7 @@ void Clang::ConstructJob(Compilation &C,
     case llvm::Triple::thumb:
     case llvm::Triple::thumbeb:
     case llvm::Triple::aarch64:
+    case llvm::Triple::arm64:
     case llvm::Triple::mips:
     case llvm::Triple::mipsel:
     case llvm::Triple::mips64:

Modified: cfe/trunk/test/Driver/pic.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/pic.c?rev=207642&r1=207641&r2=207642&view=diff
==============================================================================
--- cfe/trunk/test/Driver/pic.c (original)
+++ cfe/trunk/test/Driver/pic.c Wed Apr 30 07:18:12 2014
@@ -219,3 +219,5 @@
 // RUN:   | FileCheck %s --check-prefix=CHECK-PIC1
 // RUN: %clang -c %s -target aarch64-linux-android -### 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=CHECK-PIC1
+// RUN: %clang -c %s -target arm64-linux-android -### 2>&1 \
+// RUN:   | FileCheck %s --check-prefix=CHECK-PIC1





More information about the cfe-commits mailing list