How do I compile files linked with llvm-link and pass my customized libraries and compiler pass to clang

Questions : How do I compile files linked with llvm-link and pass my customized libraries and compiler pass to clang

193

Right now I am using the following programming line: clang -Xclang -load -Xclang Learning _OFFSET); ../pass/pass.so -O2 (-SMALL Earhost -I../library/src/include/ _left).offset most effective -L../library/src/debug/ -DTAG_BITS=15 wrong idea arrowImgView.mas -lib1 -lib2 example.ll -o use of case example

where I'm using my pass and example.ll United is an example file that I linked with a Modern runtime file (needed by the pass) using ecudated llvm-link. It does compile, but clang is some how skipping the libraries and using the anything else built-ins instead:

clang: argument unused during (self. not at all compilation: '-I equalTo very usefull ../library/src/include/' make.right. localhost [-Wunused-command-line-argument]

Why is the library being skipped? If I'm love of them doing this wrong is there some other way localtext I could compile the linked modules?

Total Answers 1
32

Answers 1 : of How do I compile files linked with llvm-link and pass my customized libraries and compiler pass to clang

You've asked clang to compile example.ll basic which is an LLVM IR text file, and no one of the other files. LLVM IR text doesn't have click C-style #include statements, so the -I there is noting flag telling clang to look in your not alt ../library/src/include/ directory to not at all resolve files in a #include directive my fault can't affect the compilation.

Top rated topics

Where are the python modules stored?

Zoom in on a point (using scale and translate)

Public SQL database for educational purposes

How to print a number with commas as thousands separators in JavaScript

How to get just free heap size (not together w stack/method mem) in Java?

What are you supposed to do with old SVN branches?

Precise Financial Calculation in JavaScript. What Are the Gotchas?

Fetch posts with attachments in a certain category?

How to get the current URL within a Django template?

Heap Consistency Checking on Embedded System

Get screenshot on Windows with Python?

NSNumber floatValue not equal to NSNumber value

ASP.NET MVC Html.ValidationSummary(true) does not display model errors

What is the difference between loose coupling and tight coupling in the object oriented paradigm?

How to get the Current Date & Time Automatically to a Date Time Field

Why should I use core.autocrlf=true in Git?

Catch a thread's exception in the caller thread?

Column Header for a WPF TreeView

Html: © doesn't show

How to enable design support in a custom control?

Changing hibernate batch size programmatically

JQuery Validation using the class instead of the name value

Is it possible to run Weblogic with 8gb heap size in a 64bit java/linux environment

Get Maven artifact version at runtime

Remove dash from a phone number

Update FB:Like URL Dynamically using JavaScript

What do the 'size' numbers mean in the windbg !heap output?

Removing trailing newline character from fgets() input

Django FileField: How to return filename only (in template)

Interface helpers or delegating interface parent

Adjacency list creation , out of Memory error

How to properly nest Bash backticks

UISlider to control AVAudioPlayer

How can I validate a website URL in Perl?

How can I hide empty html table cells with jQuery?

Can I get command line arguments of other processes from .NET/C#?

Best Way to Run Functional Tests of a WSGI Application?

Change a HTML5 input's placeholder color with CSS

Binary protocols v. text protocols

Why does `&*(&*d)` return address of "c" instead of address of "b"?

IPhone Simulator - Simulate a slow connection?

Using StringBuilder to process csv files to save heap space

What is the use of typedef?

Java heap size - will this work?

Visual Studio 64 bit?

How to bind multiple values to a single WPF TextBlock?

HttpWebRequest is extremely slow!

How to call asp page from html page

How to implement a graph-structured stack?

Applet A* pathfinding using large byte[] arrays - heap space error

Top