diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-03 20:53:37 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-03 20:53:37 -0500 |
commit | 4b538b9e48d6e729caeeccefb0974d524c476d33 (patch) | |
tree | 3f82508c4167bbf5d32154b9c52dcd308301e486 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 30ffd65550ba806a6ac1e66767e58bc565004c67 (diff) |
ensure function tables
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index eee89ed9d1..3330f74691 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -258,6 +258,10 @@ namespace { IndexedFunctions[Name] = Index; return Index; } + void ensureFunctionTable(const FunctionType *F) { + std::string Sig = getFunctionSignature(F); + FunctionTables[Sig]; + } // Return a constant we are about to write into a global as a numeric offset. If the // value is not known at compile time, emit a postSet to that location. unsigned getConstAsOffset(const Value *V, unsigned AbsoluteTarget) { |