class PragmaOpenCLExtensionCallbacks : public PPCallbacks {
public:
typedef struct {
- StringRef Name;
+ SmallString<16> Name;
unsigned State;
} CallbackParameters;
clang::SourceLocation NameLoc, const clang::IdentifierInfo *Name,
clang::SourceLocation StateLoc, unsigned State) {
this->NameLoc = NameLoc;
- this->Name = Name->getName().str();
+ this->Name = Name->getName();
this->StateLoc = StateLoc;
this->State = State;
};
SourceLocation NameLoc;
- StringRef Name;
+ SmallString<16> Name;
SourceLocation StateLoc;
unsigned State;
};
}
PragmaOpenCLExtensionCallbacks::CallbackParameters RetVal = {
- Callbacks->Name.str(),
+ Callbacks->Name,
Callbacks->State
};
return RetVal;