Skip to content

Instantly share code, notes, and snippets.

@shadone
Created February 20, 2014 12:33
Show Gist options
  • Save shadone/9112502 to your computer and use it in GitHub Desktop.
Save shadone/9112502 to your computer and use it in GitHub Desktop.
diff --git a/generator/annotator.cpp b/generator/annotator.cpp
index df0ab45..2c4a751 100644
--- a/generator/annotator.cpp
+++ b/generator/annotator.cpp
@@ -269,7 +269,7 @@ bool Annotator::generate(clang::Preprocessor &PP)
continue;
std::string filename = outputPrefix % "/refs/" % it.first;
std::string error;
- llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::sys::fs::F_Append);
+ llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::raw_fd_ostream::F_Append);
if (!error.empty()) {
std::cerr << error<< std::endl;
continue;
@@ -342,7 +342,7 @@ bool Annotator::generate(clang::Preprocessor &PP)
if (saved.find(idxRef) == std::string::npos) {
std::string funcIndexFN = outputPrefix % "/fnSearch/" % idx;
std::string error;
- llvm::raw_fd_ostream funcIndexFile(funcIndexFN.c_str(), error, llvm::sys::fs::F_Append);
+ llvm::raw_fd_ostream funcIndexFile(funcIndexFN.c_str(), error, llvm::raw_fd_ostream::F_Append);
if (!error.empty()) {
std::cerr << error << std::endl;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment