Displaying 2 results from an estimated 2 matches for "sampleirmodule".
2015 Jul 22
2
[LLVMdev] is it impossible to use the external llvm custom pass on windows?
...39;t print anything on Windows.
Additionally, i already built the LLVM and Clang on Windows using CMake.
To avoid confusing, i'm writing my source code.
#include <iostream>
using namespace std;
#include <llvm/Pass.h>
#include <llvm/IR/Module.h>
using namespace llvm;
class SampleIRModule : public llvm::ModulePass {
public:
static char ID;
SampleIRModule() : llvm::ModulePass(ID) {}
bool runOnModule(llvm::Module &M);
};
bool SampleIRModule::runOnModule(llvm::Module &M) {
M.dump();
return false;
}
char SampleIRModule::ID = 0;
static RegisterPass<Sam...
2015 Jul 22
1
[LLVMdev] is it impossible to use the external llvm custom pass on windows?
...ing CMake.
>>
>> To avoid confusing, i'm writing my source code.
>>
>> #include <iostream>
>> using namespace std;
>>
>> #include <llvm/Pass.h>
>> #include <llvm/IR/Module.h>
>> using namespace llvm;
>>
>> class SampleIRModule : public llvm::ModulePass {
>> public:
>> static char ID;
>> SampleIRModule() : llvm::ModulePass(ID) {}
>>
>> bool runOnModule(llvm::Module &M);
>> };
>>
>> bool SampleIRModule::runOnModule(llvm::Module &M) {
>> M.dump(...