summaryrefslogtreecommitdiffstats
path: root/lib/Driver/Action.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-07-20 21:59:31 +0000
committerArtem Belevich <tra@google.com>2015-07-20 21:59:31 +0000
commitf38ef5337c1a4640fdc984e051be38bbb67363e9 (patch)
tree4d82cbc81c5f508e569927b9fb3dfd34c7ea614b /lib/Driver/Action.cpp
parentc54488f88dd79dabefc978365a5def5e61b2754f (diff)
[CUDA] Moved device-side triple calculation to buildCudaActions().
Differential Revision: http://reviews.llvm.org/D11310 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Action.cpp')
-rw-r--r--lib/Driver/Action.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Driver/Action.cpp b/lib/Driver/Action.cpp
index 49dccd224b..6fe2a50346 100644
--- a/lib/Driver/Action.cpp
+++ b/lib/Driver/Action.cpp
@@ -58,9 +58,10 @@ BindArchAction::BindArchAction(std::unique_ptr<Action> Input,
void CudaDeviceAction::anchor() {}
CudaDeviceAction::CudaDeviceAction(std::unique_ptr<Action> Input,
- const char *ArchName, bool AtTopLevel)
+ const char *ArchName,
+ const char *DeviceTriple, bool AtTopLevel)
: Action(CudaDeviceClass, std::move(Input)), GpuArchName(ArchName),
- AtTopLevel(AtTopLevel) {}
+ DeviceTriple(DeviceTriple), AtTopLevel(AtTopLevel) {}
void CudaHostAction::anchor() {}