- Sep 11, 2013
-
-
Nico Rieck authored
Some build systems use pipes for stdin/stderr. On nix-ish platforms colored output can be forced by -fcolor-diagnostics. On Windows this option has no effect in these cases because LLVM uses the console API (which only operates on the console buffer) even if a console wrapper capable of interpreting ANSI escape codes is used. The -fansi-escape-codes option allows switching from the console API to ANSI escape codes. It has no effect on other platforms. llvm-svn: 190464
-
Eli Friedman authored
llvm-svn: 190463
-
Eli Friedman authored
llvm-svn: 190462
-
Eli Friedman authored
llvm-svn: 190461
-
Nico Rieck authored
In some cases (e.g. when a build system pipes stderr) the Windows console API cannot be used to color output. For these, provide a way to switch to ANSI escape codes. This is required for Clang's -fansi-escape-codes option. llvm-svn: 190460
-
Michael Gottesman authored
llvm-svn: 190459
-
Michael Gottesman authored
[python-bindings] Added code for loading a module from bitcode, getset its datalayout, getset its target, dump it, print it to a file. llvm-svn: 190458
-
Michael Gottesman authored
[python-bindings] Added bindings for LLVMContextRef and a test for creating a new context or getting the global context. llvm-svn: 190457
-
Michael Gottesman authored
[python-bindings] Implemented the PassRegistry class and the calls to initialize/shutdown llvm. Also included an initialize_llvm declaration. llvm-svn: 190456
-
Michael Gottesman authored
llvm-svn: 190455
-
Marshall Clow authored
llvm-svn: 190454
-
Nick Kledzik authored
Patch by Joe Ranieri llvm-svn: 190453
-
Nick Kledzik authored
-current_version, -compatibility_version, and -install_name. Patch by Joe Ranieri llvm-svn: 190452
-
Nick Kledzik authored
and a parsePackedVersion() utility. Patch by Joe Ranieri llvm-svn: 190451
-
Eli Friedman authored
llvm-svn: 190450
-
Eli Friedman authored
Sorry about that; I'll try to be more careful about DEBUG mode. llvm-svn: 190449
-
Eli Friedman authored
llvm-svn: 190448
-
DeLesley Hutchins authored
llvm-svn: 190447
-
Eli Friedman authored
llvm-svn: 190446
-
Eli Friedman authored
llvm-svn: 190445
-
Richard Smith authored
call; remove its 'number of explicit arguments' and 'what kind of call' parameters. llvm-svn: 190444
-
Eli Friedman authored
trunk clang is a bit more aggressive about emitting unused-declaration warnings, so adjust some AST code to match. Specifically, use LLVM_ATTRIBUTE_UNUSED for declarations which are never supposed to be referenced, and turn references to declarations which are supposed to be referenced into odr-uses. llvm-svn: 190443
-
Eli Friedman authored
llvm-svn: 190442
-
Reid Kleckner authored
As requested when applying the same logic to calling conventions. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1634 llvm-svn: 190441
-
- Sep 10, 2013
-
-
Eric Christopher authored
llvm-svn: 190440
-
Richard Smith authored
treat such subtractions as being non-constant. Patch by Serge Pavlov! With a few tweaks by me. llvm-svn: 190439
-
Rui Ueyama authored
llvm-svn: 190438
-
Eli Friedman authored
Make sure we perform the correct "referenced-but-not-used" check for static member constants. Fixes bug reported on cfe-commits by Alexey Samsonov. llvm-svn: 190437
-
rdar://problem/14071463Enrico Granata authored
The wrong method was being called in some instances here, causing class lookups to fail llvm-svn: 190436
-
Hans Wennborg authored
The test filename (%s) is easily confused with an option when it starts with /Users... llvm-svn: 190435
-
Reid Kleckner authored
Summary: Dynamic initializers are mangled as ??__E <name> YAXXZ. Reviewers: timurrrr CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1477 llvm-svn: 190434
-
Hans Wennborg authored
llvm-svn: 190432
-
Rui Ueyama authored
Process::GetEnv() uses GetEnvironmentVariableW, which is a Windows API to get an environment variable and is preferable over getenv(). llvm-svn: 190431
-
Matt Arsenault authored
llvm-svn: 190429
-
Hans Wennborg authored
This adds driver support for building DLLs (the /LD and /LDd flags). It basically does two things: runtime selection and passing -dll and -implib to the linker. llvm-svn: 190428
-
Reid Kleckner authored
Static locals requiring initialization are not thread safe on Windows. Unfortunately, it's possible to create static locals that are actually externally visible with inline functions and templates. As a result, we have to implement an initialization guard scheme that is compatible with TUs built by MSVC, which makes thread safety prohibitively difficult. MSVC's scheme is that every function that requires a guard gets an i32 bitfield. Each static local is assigned a bit that indicates if it has been initialized, up to 32 bits, at which point a new bitfield is created. MSVC rejects inline functions with more than 32 static locals, and the externally visible mangling (?_B) only allows for one guard variable per function. On Eli's recommendation, I used MangleNumberingContext to track which bit each static corresponds to. Implements PR16888. Reviewers: rjmccall, eli.friedman Differential Revision: http://llvm-reviews.chandlerc.com/D1416 llvm-svn: 190427
-
Matt Arsenault authored
llvm-svn: 190426
-
Matt Arsenault authored
llvm-svn: 190425
-
Matt Arsenault authored
llvm-svn: 190424
-
Rui Ueyama authored
On Windows, character encoding of multibyte environment variable varies depending on settings. The only reliable way to handle it I think is to use GetEnvironmentVariableW(). GetEnvironmentVariableW() works on wchar_t string, which is on Windows UTF16 string. That's not ideal because we use UTF-8 as the internal encoding in LLVM. This patch defines a wrapper function which takes and returns UTF-8 string for GetEnvironmentVariableW(). The wrapper function does not do any conversion and just forwards the argument to getenv() on Unix. Differential Revision: http://llvm-reviews.chandlerc.com/D1612 llvm-svn: 190423
-