diff options
| author | Mitch Phillips <mitchphillips@outlook.com> | 2019-03-06 19:17:18 +0000 |
|---|---|---|
| committer | Mitch Phillips <mitchphillips@outlook.com> | 2019-03-06 19:17:18 +0000 |
| commit | 318028f00f3fe7d90f61a19ee3d8aee98838736e (patch) | |
| tree | 10176855adcaabb563ae59c846f6f6987b014263 /llvm/unittests/IR/DataLayoutTest.cpp | |
| parent | 8f7cfecfbfe73198f5419f13f0150d7102df97ef (diff) | |
| download | bcm5719-llvm-318028f00f3fe7d90f61a19ee3d8aee98838736e.tar.gz bcm5719-llvm-318028f00f3fe7d90f61a19ee3d8aee98838736e.zip | |
Revert "[IR][ARM] Add function pointer alignment to datalayout"
This reverts commit 2391bfca97290181ae65796ea6da135d1b6d037b.
This reverts rL355522 (https://reviews.llvm.org/D57335).
Kills buildbots that use '-Werror' with the following error:
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm/lib/IR/Value.cpp:657:7: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
See buildbots http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/30200/steps/check-llvm%20asan/logs/stdio for more information.
llvm-svn: 355537
Diffstat (limited to 'llvm/unittests/IR/DataLayoutTest.cpp')
| -rw-r--r-- | llvm/unittests/IR/DataLayoutTest.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/unittests/IR/DataLayoutTest.cpp b/llvm/unittests/IR/DataLayoutTest.cpp deleted file mode 100644 index e7ed70b7de5..00000000000 --- a/llvm/unittests/IR/DataLayoutTest.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//===- ConstantRangeTest.cpp - ConstantRange tests ------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include "llvm/IR/DataLayout.h" -#include "gtest/gtest.h" - -using namespace llvm; - -namespace { - -TEST(DataLayoutTest, FunctionPtrAlign) { - EXPECT_EQ(0U, DataLayout("").getFunctionPtrAlign()); - EXPECT_EQ(1U, DataLayout("Fi8").getFunctionPtrAlign()); - EXPECT_EQ(2U, DataLayout("Fi16").getFunctionPtrAlign()); - EXPECT_EQ(4U, DataLayout("Fi32").getFunctionPtrAlign()); - EXPECT_EQ(8U, DataLayout("Fi64").getFunctionPtrAlign()); - EXPECT_EQ(1U, DataLayout("Fn8").getFunctionPtrAlign()); - EXPECT_EQ(2U, DataLayout("Fn16").getFunctionPtrAlign()); - EXPECT_EQ(4U, DataLayout("Fn32").getFunctionPtrAlign()); - EXPECT_EQ(8U, DataLayout("Fn64").getFunctionPtrAlign()); - EXPECT_EQ(DataLayout::FunctionPtrAlignType::Independent, \ - DataLayout("").getFunctionPtrAlignType()); - EXPECT_EQ(DataLayout::FunctionPtrAlignType::Independent, \ - DataLayout("Fi8").getFunctionPtrAlignType()); - EXPECT_EQ(DataLayout::FunctionPtrAlignType::MultipleOfFunctionAlign, \ - DataLayout("Fn8").getFunctionPtrAlignType()); - EXPECT_EQ(DataLayout("Fi8"), DataLayout("Fi8")); - EXPECT_NE(DataLayout("Fi8"), DataLayout("Fi16")); - EXPECT_NE(DataLayout("Fi8"), DataLayout("Fn8")); - - DataLayout a(""), b("Fi8"), c("Fn8"); - EXPECT_NE(a, b); - EXPECT_NE(a, c); - EXPECT_NE(b, c); - - a = b; - EXPECT_EQ(a, b); - a = c; - EXPECT_EQ(a, c); -} - -} // anonymous namespace |

