]> granicus.if.org Git - clang/commitdiff
[XRay] Implement powerpc64le xray.
authorTim Shen <timshen91@gmail.com>
Fri, 10 Feb 2017 21:03:24 +0000 (21:03 +0000)
committerTim Shen <timshen91@gmail.com>
Fri, 10 Feb 2017 21:03:24 +0000 (21:03 +0000)
Summary:
powerpc64 big-endian is not supported, but I believe that most logic can
be shared, except for xray_powerpc64.cc.

Also add a function InvalidateInstructionCache to xray_util.h, which is
copied from llvm/Support/Memory.cpp. I'm not sure if I need to add a unittest,
and I don't know how.

Reviewers: dberris, echristo, iteratee, kbarton, hfinkel

Subscribers: mehdi_amini, nemanjai, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D29742

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294781 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 0a54418de7799b52208d84c9d9d69f9ea8685143..e14c14d391447a5e1f74db8002ef688945e80f2e 100644 (file)
@@ -5064,6 +5064,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
       case llvm::Triple::x86_64:
       case llvm::Triple::arm:
       case llvm::Triple::aarch64:
+      case llvm::Triple::ppc64le:
         // Supported.
         break;
       default: