llvm.org GIT mirror llvm / a593909
Change LTOModule`s getTargetTriple and setTargetTriple to use c++ types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212343 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
100100 StringRef path = "");
101101
102102 /// Return the Module's target triple.
103 const char *getTargetTriple() {
104 return _module->getTargetTriple().c_str();
103 const std::string &getTargetTriple() {
104 return _module->getTargetTriple();
105105 }
106106
107107 /// Set the Module's target triple.
108 void setTargetTriple(const char *triple) {
109 _module->setTargetTriple(triple);
108 void setTargetTriple(StringRef Triple) {
109 _module->setTargetTriple(Triple);
110110 }
111111
112112 /// Get the number of symbols
148148 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); }
149149
150150 const char* lto_module_get_target_triple(lto_module_t mod) {
151 return unwrap(mod)->getTargetTriple();
151 return unwrap(mod)->getTargetTriple().c_str();
152152 }
153153
154154 void lto_module_set_target_triple(lto_module_t mod, const char *triple) {