summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARFFormValue.cpp5
-rw-r--r--llvm/lib/Transforms/Vectorize/Vectorize.cpp4
2 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp
index 2e16db9bab6..2876fca07c0 100644
--- a/llvm/lib/DebugInfo/DWARFFormValue.cpp
+++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp
@@ -18,10 +18,11 @@
using namespace llvm;
using namespace dwarf;
-template <uint8_t AddrSize, uint8_t RefAddrSize>
-struct FixedFormSizes {
+namespace {
+template <uint8_t AddrSize, uint8_t RefAddrSize> struct FixedFormSizes {
static const uint8_t sizes[];
};
+}
template <uint8_t AddrSize, uint8_t RefAddrSize>
const uint8_t FixedFormSizes<AddrSize, RefAddrSize>::sizes[] = {
diff --git a/llvm/lib/Transforms/Vectorize/Vectorize.cpp b/llvm/lib/Transforms/Vectorize/Vectorize.cpp
index 3aff6366a6c..a927fe14517 100644
--- a/llvm/lib/Transforms/Vectorize/Vectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/Vectorize.cpp
@@ -1,4 +1,4 @@
- //===-- Vectorize.cpp -----------------------------------------------------===//
+//===-- Vectorize.cpp -----------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -43,6 +43,6 @@ void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createLoopVectorizePass());
}
-void LLVMAddLoopRollerPass(LLVMPassManagerRef PM) {
+void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createSLPVectorizerPass());
}
OpenPOWER on IntegriCloud