[DLA] Drop useless method from LayoutTypeSystem

This commit is contained in:
Pietro Fezzardi
2020-06-23 14:31:12 +02:00
parent b980c8bcfc
commit 46a504b9ea
2 changed files with 0 additions and 21 deletions
-13
View File
@@ -7,7 +7,6 @@
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/Instruction.h"
#include "llvm/Support/FormattedStream.h"
@@ -208,18 +207,6 @@ static void assertGetLayoutTypePreConditions(const Value *V, unsigned Id) {
or cast<Function>(V)->getReturnType()->isStructTy());
}
LayoutTypeSystemNode *LayoutTypeSystem::getLayoutType(const llvm::SCEV *S) {
if (S == nullptr)
return nullptr;
if (auto *U = dyn_cast<llvm::SCEVUnknown>(S)) {
llvm::Value *V = U->getValue();
return getLayoutType(V);
}
// LayoutTypePtr Key(S, Id);
return nullptr; // TypePtrToLayoutMap.at(Key);
}
LayoutTypeSystemNode *
LayoutTypeSystem::getLayoutType(const Value *V, unsigned Id) {