aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorMitch Phillips <mitchphillips@outlook.com>2019-03-06 19:17:18 +0000
committerMitch Phillips <mitchphillips@outlook.com>2019-03-06 19:17:18 +0000
commit318028f00f3fe7d90f61a19ee3d8aee98838736e (patch)
tree10176855adcaabb563ae59c846f6f6987b014263 /llvm/lib/IR/DataLayout.cpp
parent8f7cfecfbfe73198f5419f13f0150d7102df97ef (diff)
downloadllvm-318028f00f3fe7d90f61a19ee3d8aee98838736e.zip
llvm-318028f00f3fe7d90f61a19ee3d8aee98838736e.tar.gz
llvm-318028f00f3fe7d90f61a19ee3d8aee98838736e.tar.bz2
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/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 943f538..2644214 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -184,8 +184,6 @@ void DataLayout::reset(StringRef Desc) {
AllocaAddrSpace = 0;
StackNaturalAlign = 0;
ProgramAddrSpace = 0;
- FunctionPtrAlign = 0;
- TheFunctionPtrAlignType = FunctionPtrAlignType::Independent;
ManglingMode = MM_None;
NonIntegralAddressSpaces.clear();
@@ -381,22 +379,6 @@ void DataLayout::parseSpecifier(StringRef Desc) {
StackNaturalAlign = inBytes(getInt(Tok));
break;
}
- case 'F': {
- switch (Tok.front()) {
- case 'i':
- TheFunctionPtrAlignType = FunctionPtrAlignType::Independent;
- break;
- case 'n':
- TheFunctionPtrAlignType = FunctionPtrAlignType::MultipleOfFunctionAlign;
- break;
- default:
- report_fatal_error("Unknown function pointer alignment type in "
- "datalayout string");
- }
- Tok = Tok.substr(1);
- FunctionPtrAlign = inBytes(getInt(Tok));
- break;
- }
case 'P': { // Function address space.
ProgramAddrSpace = getAddrSpace(Tok);
break;
@@ -450,8 +432,6 @@ bool DataLayout::operator==(const DataLayout &Other) const {
AllocaAddrSpace == Other.AllocaAddrSpace &&
StackNaturalAlign == Other.StackNaturalAlign &&
ProgramAddrSpace == Other.ProgramAddrSpace &&
- FunctionPtrAlign == Other.FunctionPtrAlign &&
- TheFunctionPtrAlignType == Other.TheFunctionPtrAlignType &&
ManglingMode == Other.ManglingMode &&
LegalIntWidths == Other.LegalIntWidths &&
Alignments == Other.Alignments && Pointers == Other.Pointers;