chigraph  master
Systems programming language written for beginners in LLVM
BitcodeParser.hpp
Go to the documentation of this file.
1 
3 #pragma once
4 
5 #ifndef CHI_BITCODE_PARSER_HPP
6 #define CHI_BITCODE_PARSER_HPP
7 
8 #include "chi/Fwd.hpp"
9 
10 #include <boost/filesystem/path.hpp>
11 
12 namespace chi {
13 
16 Result parseBitcodeFile(const boost::filesystem::path& file, llvm::LLVMContext& ctx,
17  std::unique_ptr<llvm::Module>* toFill);
18 Result parseBitcodeString(const std::string& bitcode, llvm::LLVMContext& ctx,
19  std::unique_ptr<llvm::Module>* toFill);
20 }
21 
22 #endif // CHI_BITCODE_PARSER_HPP
Result parseBitcodeFile(const boost::filesystem::path &file, llvm::LLVMContext &ctx, std::unique_ptr< llvm::Module > *toFill)
Parse a bitcode file.
Forward declares all the chigraph data types.
The namespace where chigraph lives.
The result object, used for identifiying errors with good diagnostics.
Definition: Result.hpp:72