diff options
Diffstat (limited to 'contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp')
-rw-r--r-- | contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp b/contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp index 1eb57d2..454f64e 100644 --- a/contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp +++ b/contrib/llvm/lib/Target/PTX/PTXSubtarget.cpp @@ -1,4 +1,4 @@ -//===- PTXSubtarget.cpp - PTX Subtarget Information ---------------*- C++ -*-=// +//===-- PTXSubtarget.cpp - PTX Subtarget Information ----------------------===// // // The LLVM Compiler Infrastructure // @@ -22,6 +22,8 @@ using namespace llvm; +void PTXSubtarget::anchor() { } + PTXSubtarget::PTXSubtarget(const std::string &TT, const std::string &CPU, const std::string &FS, bool is64Bit) : PTXGenSubtargetInfo(TT, CPU, FS), @@ -57,10 +59,10 @@ std::string PTXSubtarget::getTargetString() const { std::string PTXSubtarget::getPTXVersionString() const { switch(PTXVersion) { - default: llvm_unreachable("Unknown PTX version"); case PTX_VERSION_2_0: return "2.0"; case PTX_VERSION_2_1: return "2.1"; case PTX_VERSION_2_2: return "2.2"; case PTX_VERSION_2_3: return "2.3"; } + llvm_unreachable("Invalid PTX version"); } |