Vuo
2.1.2
compiler
VuoCompilerConstantStringCache.cc
Go to the documentation of this file.
1
10
#include "
VuoCompilerCodeGenUtilities.hh
"
11
#include "
VuoCompilerConstantStringCache.hh
"
12
18
Constant *
VuoCompilerConstantStringCache::get
(Module *module,
const
string
&s)
19
{
20
map<string, Constant *>::iterator iter = constantStrings.find(s);
21
if
(iter != constantStrings.end())
22
return
iter->second;
23
24
Constant *c =
VuoCompilerCodeGenUtilities::generatePointerToConstantString
(module, s);
25
constantStrings[s] = c;
26
return
c;
27
}
28
32
void
VuoCompilerConstantStringCache::clear
(
void
)
33
{
34
constantStrings.clear();
35
}
Generated on Tue Jul 14 2020 23:19:33 for Vuo by
1.8.18