mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
[DLA] Drop useless method from LayoutTypeSystem
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user