Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: src/IceTypeConverter.h

Issue 805943002: Remove TypeConverter and Module from minimal subzero build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add missing comment. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceTypeConverter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTypeConverter.h
diff --git a/src/IceTypeConverter.h b/src/IceTypeConverter.h
index 32865a6f470676689fea485e42868f2b19448ee4..0450aacd9b616214191cd7cdb16c100c2af08761 100644
--- a/src/IceTypeConverter.h
+++ b/src/IceTypeConverter.h
@@ -35,12 +35,6 @@ public:
/// Context is the context to use to build llvm types.
TypeConverter(llvm::LLVMContext &Context);
- /// Returns the LLVM type for the corresponding ICE type Ty.
- llvm::Type *convertToLLVMType(Type Ty) const {
- // Note: We use "at" here in case Ty wasn't registered.
- return LLVMTypes.at(Ty);
- }
-
/// Converts LLVM type LLVMTy to an ICE type. Returns
/// Ice::IceType_NUM if unable to convert.
Type convertToIceType(llvm::Type *LLVMTy) const {
@@ -50,13 +44,8 @@ public:
return Pos->second;
}
- /// Returns ICE model of pointer type.
- Type getIcePointerType() const { return IceType_i32; }
-
private:
- // The list of allowable LLVM types. Indexed by ICE type.
- std::vector<llvm::Type *> LLVMTypes;
- // The inverse mapping of LLVMTypes.
+ // The mapping from LLVM types to corresopnding Ice types.
std::map<llvm::Type *, Type> LLVM2IceMap;
// Add LLVM/ICE pair to internal tables.
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceTypeConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698