[LLVMdev] Help with Values sign

Santos Merino santitox at hotmail.es
Mon May 28 02:49:06 PDT 2012


finally i've found the solution. To change the endianness I do the following (a
little spaguetti but it works):

    Module *M = new Module("pythoncode", getGlobalContext());
    ExecutionEngine *EE2 = EngineBuilder(M).create();
    string str = 
        EE2->getTargetData()->getStringRepresentation();
    str[0] = 'e';
    cout << str << endl;
    M->setDataLayout(str);
    ExecutionEngine *EE = EngineBuilder(M).create();




More information about the llvm-dev mailing list